def solution(n, arr1, arr2):
    return [format(arr1[i] | arr2[i], '0{}b'.format(n)).replace('0', ' ').
        replace('1', '#') for i in range(n)]


print(solution(5, [9, 20, 28, 18, 11], [30, 1, 21, 17, 28]))

ebc8329c7f0b5bb5efa24092097c86043a35dbc3
<mask token>

def solution(n, arr1, arr2):
    return [format(arr1[i] | arr2[i], '0{}b'.format(n)).replace('0', ' ').
        replace('1', '#') for i in range(n)]


<mask token>

def solution(n, arr1, arr2):
    return [format(arr1[i] | arr2[i], '0{}b'.format(n)).replace('0', ' ').
        replace('1', '#') for i in range(n)]


print(solution(5, [9, 20, 28, 18, 11], [30, 1, 21, 17, 28]))
