Harmonic oscillator has some initial elastic potential energy and amplitude of harmonic variation of energy is 21ka2=21×2×106(0.01)2=100J
This is the maximum kinetic energy of the oscillator.
Thus, Kmax=100J
This energy is added to initial elastic potential energy may give maximum mechanical energy to have value 160J.