Thoughtworks Interview Question

1. difference between iterator, generator and decorator