Santa Monica Studio interview question

C++ related questions, Data structure, Math