Nagarro interview question

Angular lifecycle