class Solution{ public: int maxArea(vector &height){ int maxArea = 0; int left = 0; int right = height.size()-1; while(left