Capgemini Engineering interview question

When we get ConcurrentModificationException and how to prevent it?