Synaptics Interview Question

Linked list and its reversal