H&M Interview Question

Different scenarios