Capital One interview question

Solve this case interview given information