Microsoft Interview Question

coding an iterator by yourself