874. Walking Robot Simulation

Problem Link:https://leetcode.com/problems/walking-robot-simulation/description/?envType=daily-question&envId=2026-04-06