BlackRock interview question

Reverse a LinkedList