1512 Number Of Good Pairs Leetcode Solution