The Zappos Family interview question

Check if a point is inside a triangle