Capital One Interview Question

Pretty straightforward