Walking Robot Simulation II

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(width + height)

Space Complexity

O(width + height)