Google interview question

LC/System design mix question Custom iterator.