HawksCode interview question

difference between method and function