Pergunta de entrevista da empresa HawksCode

difference between method and function