Given the head of a singly linked list, reverse the list, and return the reversed list.
Click Run to execute sample tests.