Airbnb interview question

Write an iterator for a variable size 2D array