Ant Group interview question

How does Map Reduce do 'group by' in Hive?