Geotab Interview Question

what is difference between method and function