Ambarella interview question

Different between verilog function and task.