Fix solution; naive/bruteforce approach