pyspark reduce a list

Solutions on MaxInterview for pyspark reduce a list by the best coders in the world