Alluma (CA) interview question

What is the difference between function and stored procedure.