Infosys interview question

React class components and lifecycle menthods