H&M interview question

Different scenarios