Answer to photoelectric effect problem