SpaceX Interview Question

how does a voltage regulator work?