Cadence Design Systems interview question

Difference between task and function.