Capital One Interview Question

Basic math