Max Planck used quantum mechanics to solve the problem of classical theory dealing with energy as a continuum. Accordingly, he stated that energy flows discontinuously and in discrete steps.