Walmart interview question

Design iterator of iterators. Basic javascript concepts and debugging.