Zalando Interview Question

How does partitioning work in Spark