Pregunta de entrevista de Tech Mahindra

what is the difference between function and method?