Company: Udaan
Difficulty: medium
\n \n Product Delivery Tracking \n \n\n \n A company maintains records of products delivered to clients. Whenever the company fulfils the complete order of a client the orderID generated is the sum of the number of products delivered for every committed product type. The head of the sales team wants to find the client-specific data for the total number of products of any type delivered to each client. \n \n Write an algorithm for the head of the sales team to calculate the total number of products of any type delivered to the respective clients. \n \n\n \n Input Format \n The first line of the input consists of an integer - numOfClients , representing the number of clients (N). \n The second line consists of N space-separated integers - orderID 0 , orderID 1 , ...., orderID N-1 , representing the orderIDs of the orders delivered to the clients. \n \n\n \n Output Format \n Print N space-separated integers representing the client-specific data for the total number of products of any type