almost right, brute force is right, but need a little simplification
Merge branch 'master' of https://github.com/python27/AlgorithmSolution