Capital One Interview Question

silver card question, a typical one