Alluma (CA) Interview Question

What is the difference between function and stored procedure.