Capital One interview question

Pretty straightforward