Capital One interview question

None too difficult.