How does a shock pen amp work?

Can you answer this question?