Leetcode 1368. Minimum Cost to Make at Least One Valid Path in a Grid | Hello Interview