Topic: Linked List Problem / Level: intermediate

Problem: Write a function to rotate a singly linked list such that the last node becomes the head.

Run the code to see the output here...