Ubisoft interview question

Puzzle solving