Infosys interview question

basics oops and interest, AI