Rosetta Problems

Count the Number of Fair Pairs

https://leetcode.com/problems/count-the-number-of-fair-pairs