Pregunta de entrevista de Liberty Mutual Insurance

One debugging question and one coding problem.