Infosys interview question

React state, Hooks, props, life cycle methods.