Capital One interview question

Pretty standard