Company: Nexstem
Difficulty: medium
Question: Total Products Delivered A company manufactures different types of software products. They deliver their products to their N clients. Whenever the company fulfills the complete order of a client, the order ID 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. 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. Input Format The first line of the input consists of an integer numOfClients , representing the number of clients N . The second line consists of N space-separated integers orderID 0 , orderID 1 , ..., orderID N-1 , representing the order IDs of the orders delivered to the clients. Output Format Print N space-separated integers representing the total products delivered to each client. Constraints 1 ≤ numOfCli