Cognizant Interview Question

Asked to write a Map reduce program and question from Hive and pig