Leetcode 3596. Minimum Cost Path with Alternating Directions I | Hello Interview