more elegant, but still have 2 samples WA, to debug
more elegant, but still have 2 samples WA, to debug

python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution