Capgemini interview question

Oops concepts, array java basics