John and the Ladder of Odds

Problem Name:
John and the Ladder of Odds
Site:HackerEarth
Links:
Tags:
Problem setters: