SiriusXM interview question

What are the differences between function and stored procedures