Pearson interview question

Component Life cycle for react