Morgan Stanley interview question

Wap to Reverse the LinkedList