LTM Limited interview question

Spark optimisation and cost efficiency