This can be seen as an extension of the previous segment. Suppose you are the manager of a big firm and are looking to hire new members for your team. You published an advertisement and have received a few applications.
You rate people on a scale of 0 to 100 and have given scores to all the members of your team and the new applicants. The selection process is very straightforward - if the applicant improves the average of the team then you hire the applicant or else reject the applicant. Remember the order of processing applications is going to be important here.
Maintaining modularity in your code is a very important aspect of writing code in the industry. You will be building on programs that are developed by your colleagues and vice versa. To make that easy for them and for you, it's always better to have a modular code. Let us see Sajan use the code from the previous question and solve this one.
You can read more about the sum functionality here.