Pregunta de entrevista de FirstCry com

sql question and logical question