Capital One interview question

Case Question