Given the coordinates of four points P1P_1P1, P2P_2P2, P3P_3P3, and P4P_4P4 in 2D space, determine if these points form a square.
Each point PiP_iPi is represented as [xi, yi][x_i,\space y_i][x ...