Infosys Interview Question

How Sharding works in database ?