National Grid interview question

Nothing too diffcult