Airbnb interview question

Flatten 2D array by implementing/overriding iterator functions— next, hasNext, and remove