Genpact interview question

Spark architecture