Convex Polygon

From LeetCode. Convexity check. Solve the geometry problem "Convex Polygon".

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

Convex Polygon

**From LeetCode.** Convexity check. Solve the geometry problem "Convex Polygon".