Pregunta de entrevista de Midland Credit Management

Given a case, calculate something