solved problem 10 - brute force only - smarter way not found yet