Magic Leap interview question

simple C++ coding question