Infosys interview question

call method using interface.