Rosetta Problems

Number of Pairs of Interchangeable Rectangles

https://leetcode.com/problems/number-of-pairs-of-interchangeable-rectangles