Happen Bank interview question

Spark data processing question. how do you optimize the job or something? Implement and show.