Deloitte interview question

OOP/Algorithms/Data structures