LINKEDLIST k reverse


i am not able to understand trhe error
pls help me out with the code

why are we returning p in line no 53 someone pls help i am confused