Given the head of a singly linked list, reverse the list in place and return the new head.
You must change the next pointers so the existing nodes point in the opposite direction: the original head becomes the tail with next set to null, and the original tail becomes the new head. Do not allocate new nodes and do not rebuild the answer from a copied list of values.