Criteo interview question

Cracking the code exercises