Tech Mahindra interview question

what is the difference between function and method?