Find Score of an Array After Marking All Elements | Leetcode 2593