SpaceX interview question

Implement an application given the requirements and constraints.