Yelp Interview Question

are the input four points form a squre