Grover interview question

How would you optimize the process x ?