Flowcode Interview Question

Rotate a linked list and sort base on node weights.