Pregunta de entrevista de Apple

What is the difference of function and task in verilog