Infosys Interview Question

Asked me to write array program with OOPS concept