The Corridor or There and Back Again

Problem Name:
The Corridor or There and Back Again
Site:CodeForces
Links:
Tags:
Problem setters: