Booz Allen Hamilton interview question

How would you optimize a query that is slow