Capital One interview question

Cases