SpaceX interview question

How to design a control loop