UST interview question

write a program using array