private int distanceSquare(Cordinate c1, Cordinate c2){
        return (int)(Math.pow(Math.abs(c1.x - c2.x) ,2) +
                Math.pow(Math.abs(c1.y-c2.y), 2));
    }
Given four points in any order determine if they form a square
Test cases
Less than or more than 4 points in input
Points could be in any quadrants e.it neg and pos allowed
src/com/interview/misc/FourPointsFormSquare.java