H&M Interview Question

Pretty straight forward