Infosys interview question

How Sharding works in database ?