Pregunta de entrevista de Tech Mahindra

angular component lifecycle, scenario based question