Pergunta de entrevista da empresa Apple

What is the difference of function and task in verilog