H&M interview question

low difficulty