Reverse a linked list from position m to n