Bloomberg interview question

write an array