Given the head of a singly linked list and two integers left and right where left <= right,
reverse the nodes of the list from position left to position right, and return the reversed list.
Test Cases
Input:
(ListNode) head = [1,2,3,4,5]
(int) left = 2
(int) right = 4