Machstatz Interview Question

difference between method and function