Accenture interview question

Difference between stored procedure and function in SQL