function solution(lottos, win_nums) {
let max=7;
let min=7;
lottos.map(lotto=>{
if(win_nums.includes(lotto))
{
max-=1;
min-=1;
}
})
lottos.map(lotto=>{
if(lotto===0)
max-=1
})
return [max===7?6:max, min===7?6:min];
}