Capgemini interview question

basic technical questions Array program to write