Given a linked list A , reverse the order of all nodes at even positions.
1 <= Size of linked list <= 100000
First and only argument is the head of the Linked-List A.
Return the head of the new linked list.
A = 1 -> 2 -> 3 -> 4
A = 1 -> 2 -> 3
1 -> 4 -> 3 -> 2
1 -> 2 -> 3
Nodes are positions 2 and 4 have been swapped.
No swapping neccassary here.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.