Solving the Challenge Series
Chief Hopper Challenge
Find the minimum units of energy with which bot should start to successfully complete the game.

Problem
Chief’s bot is playing an old DOS-based game. There is a row of buildings of different heights arranged at each index along a number line. The bot starts…