H&M interview question

Programs on singleton, arrays and strings.