Infosys Interview Question

Asked me to write the code which is trigger