Octopus Energy interview question

How did you approach the exercise?