The formula is simple.
Kinetic energy = Photon energy - Binding energy
In some places, binding energy is also called work function.
So, Photon energy =

=

(Here we multiply lambda by 10^(-9) to change nm to m)
=

J
Change it to ev from Joule (J)
so, Photon energy =

J =

= 7.8 eV
Now, KE = 7.8 - 3.31 = 4.57 eV
Done !!!