Ubisoft interview question

cpp,ds