Accenture Interview Question

How to flatten a nested list