C++ Solution to Leetcode 11. Container With Most Water