Capital One Interview Question

Mini Case, very easy calculation