use accumulate array to record calculated result, pass the last TLE test
Merge branch 'master' of https://github.com/python27/AlgorithmSolution