Unilever interview question

Depends on function