Relativity Space interview question

live coding questions in c++