LinkedIn Interview Question

Flatten nested list iterator.