Pregunta de entrevista de Systematix

Client technical interviewer was challenging, and asked me to create a script for a specific query scenario.