Mate Labs interview question

Life cycle method in react