MITYUNG Infotech interview question

question came from array , start pattern and from oops.