Accenture interview question

Word count program in Pyspark