Added bruteForce version for Problem14