Rothesay Interview Question

Algorithms and data structures. Complexity.