ROBOX PROGRAMMING interview question

Reverse a linked list using python