Wrong answer reverse k list

one input is wong. please help me out here is link of my code

@Debugger your code is giving wrong answers in the case where k is equal to 1.Check this and update your code accordingly.