Improve solution to past test cases with no timeout.
Improve solution to past test cases with no timeout.

The improvement involved caching the maximum value computed only,
instead of storing an array of all previously computed values.

julianespinel/training,julianespinel/trainning,julianespinel/training,julianespinel/training,julianespinel/training,julianespinel/trainning