RedLegg Interview Question

Difference between IDS and IPS?