Deliveroo Interview Question

How can you optimise your query, and why would this improve performance?