Leetcode: 2245. Maximum Trailing Zeros in a Cornered Path

Building blocks

Solution