Capital One interview question

break even type problem