Formula used: Einstein's photoelectric equation (K the maximum kinetic energy, V0 the stopping potential): K = h*f - W0 with h = 6.63e-34 J s, f0 = 1e15 Hz, so W0 = 4.14 eV
The line cuts the frequency axis at the threshold frequency $f_0 = 10\times10^{14}\text{ Hz}$ (where $V_0 = 0$). Work function $W_0 = hf_0 = 6.63\times10^{-34}\times10^{15} = 6.63\times10^{-19}\text{ J} = \frac{6.63\times10^{-19}}{1.6\times10^{-19}} \approx 4.14\text{ eV}$.