Reverse Linked List II

Given a linked list and positions left and right (1-indexed), reverse the nodes from left to right and return the list.

Examples
Input: [[1,2,3,4,5],2,4]
Output: [1,4,3,2,5]
Hints

Reverse Linked List II

Given a linked list and positions left and right (1-indexed), reverse the nodes from left to right and return the list.