function solution(n, arr1, arr2) {
let answer = [];
const binaryNumber1 = arr1
.map((num) => num.toString(2))
.map((el) => el.padStart(n, "0"));
const binaryNumber2 = arr2
.map((num) => num.toString(2))
.map((el) => el.padStart(n, "0"));
for (let i = 0; i < n; i++) {
let wall = "";
for (let j = 0; j < n; j++) {
if (binaryNumber1[i][j] == 1 || binaryNumber2[i][j] == 1) {
wall += "#";
} else {
wall += " ";
}
}
answer.push(wall);
wall = "";
}
return answer;
}