Amazon Interview Question

Check if a point resides inside a convex or outside.