Advanced Farm interview question

How does a stepper motor work?