Pergunta de entrevista da empresa Flowcode

Rotate a linked list and sort base on node weights.