Capital One interview question

Basics of programming and OOPs, problem solving