Infosys interview question

Abstract method and interface