ReliaQuest Interview Question

What is the difference between IDS and IPS?