Octopus Energy Interview Question

How do you approach a coding task