PromptCloud interview question

Reverse the Linked List Inplace.