Pregunta de entrevista de Amdocs

SQL queries were difficult