EXL Service interview question

How to optimize slow running query?