Samsung Electronics interview question

Difference between task and function