Added Spark solution to 2nd problem.