Create Hw2

Write a C++ program detectRect.cpp which, given coordinates of N points in the 2-D X-Y plane,
detects whether there are four points (among the N points provided) which form the four corners
of a rectangle with all edges parallel to the X or Y coordinate axes, and prints ”Yes” or ”No”
correspondingly. The input contains 2N integers, with each pair of adjacent numbers representing
the X and Y coordinates of a point. Example runs of valid input arguments are:

Note: Missed few test cases