Infosys interview question

what is optimizer in sql server