Pregunta de entrevista de Grover

How would you optimize the process x ?