Capital One interview question

just some case question