National Grid Interview Question

How do you find a better way?