SpaceX Interview Question

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