Infosys interview question

Write a word count program in spark