Answer
Please see the work below.
Work Step by Step
When a photon of a certain required energy is absorbed by an electron, the energy absorption occurs. Th energy of photon should be equal to the energy necessary to electron from lower to higher energy level.