Coforge Interview Question

Convert nested lists to flattened list in python.