Introduction - If you have any usage issues, please Google them yourself
a program to find the maximum number of rectangles that can be
formed both horizontal and vertical with the help of a given n number of
coordinate(x,y) points. The method getRectangles takes 1 input
parameter which is an int array called coordinates