Infosys interview question

What is the difference between store procedure and function