Ubisoft interview question

How to solve a certain scenario?