Rosetta Problems

Find the Number of Good Pairs II

https://leetcode.com/problems/find-the-number-of-good-pairs-ii