Azira interview question

How to flatten nested data in pyspark?