Neumo interview question

difference between a function and a stored procedure