How does a photoelectric work?

Can you answer this question?