WD interview question

Linked List rotation question, pretty simple