Capital One Interview Question

very numerical case question