Pregunta de entrevista de Aptean

SQL was more difficult then I thought