DXC Technology interview question

What is the difference between procedure and function