Capital One Interview Question

Basics of programming and OOPs, problem solving