Solve challenge 188 with simple brute force method