Capital One Interview Question

Pretty standard