Rectangles to squares

Problem Name:
Rectangles to squares
Site:HackerEarth
Links:
Tags:
Problem setters: