Find Cutoff Score for Each School(LeetCode 1988):

Problem