874. Walking Robot Simulation - Explanation

Problem Link