Added bruteforce solution to problem 12