Tredence Interview Question

Pyspark code to generate sum from the given table customer wise