Octopus Energy Interview Question

How did you approach the exercise?