Brute force solution for problem 96. :)