Pregunta de entrevista de BIS Safety Software

How would you optimize a query