Number Of Good Pairs Leetcode Solution C