Wells Fargo Interview Question

Differences between stores procedure and user defined functions.