Capital One interview question

Basic math