Criteo interview question

Basic coding like array manipulation