Prudential Interview Question

Reverse a linked list which was easy.