Q) https://leetcode.com/problems/container-with-most-water/
class Solution:
def maxArea(self, height: List[int]) -> int:
b=[]
ans=0
m=0
for i in range(0,len(height)):
for j in range(0,len(height)):
if j==i:
continue
if j>i:
width=j-i
else:
width=i-j
if height[i]>height[j]:
length=height[j]
else:
length=height[i]
p=width*length
if p>m:
m=p
if m>ans:
ans=m
return ans