Domanda di colloquio di NXP Semiconductors

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