StarLink Group interview question

About Life cycle method and how it works?