Capgemini Interview Question

Optimization in Spark