Intuitive interview question

How a stepper motor works - rotor stator function,