Infosys interview question

Basic oops and dsa. Basic array questions.