Infosys interview question

Asked me to write array program with OOPS concept