Leoforce interview question

reverse a linked list in leetcode