TATA ELXSI interview question

lifecycle methods of react in functional component