FiftyFive Technologies interview question

React component life cycle