Thoughtworks interview question

1. difference between iterator, generator and decorator