Max Points in Archery

Alice and Bob compete in an archery contest with 12 sections labeled 0 through 11. Bob has already shot his arrows, given as bobArrows[i] arrows at section i. Bob and Alice each have exactly numArrows arrows in total, so sum(bobArrows) == numArrows. Alice distributes her numArrows arrows across the 12 sections. For each section, if Alice shoots more arrows than Bob she scores that section index in points, otherwise she scores zero from that section. Return any allocation result[0..11] that uses exactly numArrows arrows and maximizes Alice total score. Any optimal allocation is accepted.

Examples
Input: [9,[1,1,0,1,0,0,2,1,0,1,2,0]]
Output: [0,0,0,0,1,1,0,0,1,2,3,1]
Hints

Max Points in Archery

Alice and Bob compete in an archery contest with 12 sections labeled 0 through 11. Bob has already shot his arrows, given as `bobArrows[i]` arrows at section `i`. Bob and Alice each have exactly `numArrows` arrows in total, so `sum(bobArrows) == numArrows`. Alice distributes her `numArrows` arrows across the 12 sections. For each section, if Alice shoots more arrows than Bob she scores that section index in points, otherwise she scores zero from that section. Return any allocation `result[0..11]` that uses exactly `numArrows` arrows and maximizes Alice total score. Any optimal allocation is accepted.