SpaceX interview question

What was your approach to the coding assessment? Any optimizations?