SpaceX Interview Question

How to design a control loop