def solution(lottos, win_nums):
answer = [0, 0]
rank = [6,6,5,4,3,2,1]
count = 0
count_zero = lottos.count(0)
for i in lottos: //lottos에서 win_nums 가 있으면
if i in win_nums: //count += 1
count += 1
answer[0]= rank[count+count_zero] //answer[0]은 최고순위
answer[1]= rank[count] //answer[1]은 최저순위
return answer