Leetcode 2001 Number of Pairs of Interchangeable Rectangles