Apple Interview Question

Detect a point in a triangle