Water Container Problem Leetcode Sql