Frage im Vorstellungsgespräch bei NXP Semiconductors

Difference between task and functions. Write a program to swap.