RedLegg interview question

Difference between IDS and IPS?