Capital One interview question

Data structure/algorithm questions