Deliveroo interview question

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