WA
Input: [1,2,1]
Output: 1
Expected: 2
Does this mean to find the total "area"? NO
WA
Input: [1,2,4,3]
Output: 6
Expected: 4
This is to find the max area between any of two lines.
Thank you  the problem should really be refined.
I was thinking about the lines are always there, so the [1,2,1] problem look like this in my mind

xx
Since the middle piece is too tall, one cannot pick [1,3] as a container, one can either choose [1,2] or [2, 3] as a container, and in either case the answer should be 1.
But the expected result tell me otherwise ... it looks like we are given a bunch of lines, and we can choose two of them to appear so that it creates a container with max area.