Criteo interview question

cracking the coding interview or leet code