Topic: Linked List Problem / Level: intermediate

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

Run the code to see the output here...