Bruteforcing the array multiplication assignment