MongoDB Interview Question

How does MongoDB sharding works?