Pergunta de entrevista da empresa Tech Mahindra

what is the difference between function and method?