

For the points given below.
The smallest parameter that contains all the points will look like the diagram given below.
First-line contains ‘T’, denoting the number of Test cases.
For each Test case:
The first line contains an integer, ‘N’, denoting the number of points on the 2-D plane.
The following ‘N’ line contains two space-separated integers, denoting the x coordinate and y coordinate of the point.
For each test case, print ‘X’ lines, where ‘X’ is the number of distinct points on the smallest parameter. In each line, you have to print two space-separated integers denoting the point's x coordinate and y coordinate.
You don’t need to print anything. It has already been taken care of. Just implement the given function.
1 <= ‘T’ <= 5
3 <= ‘N’ <= 10^5
0 <= ‘x’ & ‘y’ <= 10^9.
Note- Sum of ‘N’ over all test cases does not exceed 10^5.
Time Limit: 1 sec
To get the lower hull, we will repeat the same steps as we did to get the upper hull.
Algorithm:
Save Ninja Land
Save Ninja Land
Save Ninja Land
Save Ninja Land
Save Ninja Land
Save Ninja Land
Points Visible
Points Visible
Points Visible
Circle Intersection
Circle Intersection
Circle Intersection
Circle Intersection
City Lights
Angler's Race