Thomson Reuters Interview Question

Explain difference between procedure and function