Happen Bank Interview Question

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