Max Area Rectangle With Point Constraints II

From LeetCode. Constraint-based rectangle (advanced). Solve the geometry problem "Max Area Rectangle With Point Constraints II".

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

Max Area Rectangle With Point Constraints II

**From LeetCode.** Constraint-based rectangle (advanced). Solve the geometry problem "Max Area Rectangle With Point Constraints II".