Capgemini interview question

Where do we write the callback function