Problem 12 bruit force bad algo