Birlasoft interview question

React component life cycle methods