SpaceX interview question

They used custom coding questions, involved me to do some basic geometry to solve.