NVIDIA interview question

Difference between task and function in systemverilog.