Avizva Solutions interview question

Collections question