Scottish Water interview question

How did I tackle a complex problem