Everpure Interview Question

To check whether the given 4 points are square.