Number of Pairs of Interchangeable Rectangles

Number of Pairs of Interchangeable Rectangles - Coding Problem | K5kC