reverse a linked list
find the value of the node given index of node