Infosys interview question

difference between function and store procedure