Lowell Interview Question

difference between udf and stored proc