Given a singly linked list with nnn nodes and two positions, left and right, the objective is to reverse the nodes of the list from left to right. Return the modified list.
left
right
Constraints:
n
node.value