Capital One interview question

cases