Amdocs interview question

Reverse Linked list with three-pointer