Loftware interview question

Reverse LinkedList