hackerrank is organizing a hackathon for all its employee. a hachathon is a team event, and there are n teams taking part. the number of employees in the ith team is denoted by teamsize[i]