Problem 4 Finished - Brute Force