Fuzion interview question

I have been given a task for to do.