Water Container Problem Leetcode Contest