Genpact interview question

life cycle hooks of angular