Pergunta de entrevista da empresa Holman

How would you optimize a Spark code