Tredence interview question

Pyspark code to generate sum from the given table customer wise