How does electrocardiography work?

Can you answer this question?