Pregunta de entrevista de SAS

Technical question, required code debugging