Beekeeper interview question

Implement an interator