input: Write a function to calculate the maximum area of water that can be contained between the vertical lines represented by a list of heights.
  assert maxArea([1,8,6,2,5,4,8,3,7]) == 49
  assert maxArea([1,1]) == 1
  assert maxArea([4,3,2,1,4]) == 16
output: def maxArea(height):
      left, right = 0, len(height) - 1
      max_area = 0
      while left < right:
          width = right - left
          max_area = max(max_area, min(height[left], height[right]) * width)
          if height[left] < height[right]:
              left += 1
          else:
              right -= 1
      return max_area