Capital One interview question

Can you solve this scenario?