Max Area Rectangle With Point Constraints I

From LeetCode. Constraint-based rectangle. Solve the geometry problem "Max Area Rectangle With Point Constraints I".

Examples
Input: [1,2,3]
Output: 0
Hints

Max Area Rectangle With Point Constraints I

**From LeetCode.** Constraint-based rectangle. Solve the geometry problem "Max Area Rectangle With Point Constraints I".