Capgemini Interview Question

How Partitioning & Shuffling internally works in Spark?