Tech Mahindra interview question

Difference between procedure and functions