X Interview Question

Reverse linked list