Zalando interview question

How does partitioning work in Spark