function rockScissorPaper2(a, b) {
let answer = [];
for(let i = 0; i < a.length; i++) {
switch(true) {
case a[i] === b[i]:
answer.push('D');
break;
case a[i] === 1 && b[i] === 2:
case a[i] === 2 && b[i] === 3:
case a[i] === 3 && b[i] === 1:
answer.push('B');
break;
case b[i] === 1 && a[i] === 2:
case b[i] === 2 && a[i] === 3:
case b[i] === 3 && a[i] === 1:
answer.push('A');
break;
}
}
console.log(answer);
}