Fractal interview question

First interview with a task. Than walkthrough through the task