Capital One interview question

very numerical case question