Google Interview Question

Iterate over a nested list (of maximum depth of 2) using only one loop.