Capital One Interview Question

core java oo principles