Company: Lam Research_7aug
Difficulty: medium
Egg Distribution Problem Description To promote healthy eating, a school gives each of its N students one tray of eggs, and every tray starts with exactly N eggs. Each day every student is allotted a random number. All students who are allotted the same number form one group, and every student in a group eats as many eggs from their own tray as there are students in that group. For example, if a group has 3 students, each of those 3 students eats 3 eggs from their tray. The Principal wants a dashboard showing how many eggs are left in each student's tray. Given N and the number allotted to each student, print the number of eggs left in every tray, in the same order as the students are given. Input Format Read from standard input. N A[1] A[2] ... A[N] Line 1 contains the integer N , the number of students (and the number of eggs in each tray). Line 2 contains the N numbers allotted to the students, separated by single spaces. A[i] is the number of student i . Output Format Print a singl