Infosys interview question

Explain forward and backward chaining.