NatWest Group interview question

Data structures