Maximum Amount of Money Robot Can Earn

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(mn)

Space Complexity

O(n)