Pergunta de entrevista da empresa Thoughtworks

1. difference between iterator, generator and decorator