CodeArray interview question

What are generators? How does yielding work?