https://leetcode.com/problems/number-of-good-pairs/description/

시간 복잡도 : O(n^2)
class Solution:
def numIdenticalPairs(self, nums: List[int]) -> int:
count = 0
for i in range(len(nums)):
for j in range(len(nums)):
if nums[i] == nums[j] and i < j:
count += 1
return count