Photon interview question

What is life cycle hook?