Capgemini interview question

Stored procedure vs function (SQL)