PayPal interview question

Implement function that revert link list recursive