Five Rings interview question

C++ programming question involving data structures