I found the problem maximum performance of the team to be challenging. After trying few approaches I was not able to find the solution and hence used Leetcode Discussion to get and understand the solution. The techniques discussed to solve this problem using heap is very intresting. I would like to know are there any problems similar to this so that I can try it out? Thanks.