Question d’entretien chez NXP Semiconductors

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