데일리 루틴
55번 - 카드 뭉치
https://school.programmers.co.kr/learn/courses/30/lessons/159994
function solution(cards1, cards2, goal) {
let len = goal.length;
for(let i=0; i<len; i++){
if (goal[0] === cards1[0]){
goal.shift();
cards1.shift();
} else if (goal[0] === cards2[0]){
goal.shift();
cards2.shift();
} else {
return 'No';
}
}
return 'Yes'
}