LL-k Reverse Problem

I am not returning anything in the void function reverse(int k ) but still the error is getting displayed that don’t return Node in the void function. Please have a look at the error.

please share your code by saving it on ide.codingblocks.com