THG interview question

Data structures, algorithms, OOP, Complexity analysis