Pregunta de entrevista de Flowcode

Rotate a linked list and sort base on node weights.