MongoDB interview question

How does MongoDB sharding works?