Path With Minimum Effort Leetcode Problems Sql