Pregunta de entrevista de American Express

sql queries as some puzzles