Adecco interview question

Difficult