Capital One interview question

Simple case study