NAV Canada interview question

What is the difference between function, method and procedure