1368. Minimum Cost to Make at Least One Valid Path in a Grid - Explanation

Problem Link