Cansider a game of ladder climbing. There are 5 levels in the game, level 1 is the lowest (bottom) and level 5 is the highest (top). A player starts…