Nagarro interview question

angular2 life cycle hooks