Airbnb Interview Question

Matrix iterator