DXC Technology Interview Question

What is the difference between procedure and function