RAt chases its cheese

do we have to do this question using linked list?

Hi sanchit
No Iink list is not used

but this question is in linked list section

I think it is by mistake just do it by rec. And backtrack