Magic Leap interview question

Coding Questions in c++