Infosys interview question

Procedure vs function vs trigger