Capgemini interview question

How do you optimise using spark