Solved problem 13
Solved problem 14 - brute force