XYZ interview question

Linked list reverse Same question with recursion