Capital One Interview Question

just some case question