https://leetcode.com/problems/jewels-and-stones/description/
from collections import Counter
class Solution:
def numJewelsInStones(self, jewels: str, stones: str) -> int:
counter = Counter(stones)
answer = 0
for jewel in jewels:
answer += counter[jewel]
return answer
파이썬 알고리즘 인터뷰 29번