Azira Interview Question

How to flatten nested data in pyspark?