Added Spark solution to 3rd problem.