Determine whether points form squares | Purestorage Interview Question