Leetcode 3603. Minimum Cost Path with Alternating Directions II | Hello Interview