Reverse Link List II


#1

My code: https://ideone.com/u3wq04.

It fails on this test case:
List: 1
n = 1
m = 1