Ubisoft interview question

One puzzle asked to solved