add completed 8th problem, includes saving the max array which is not re...

...quired