Maximal Score After Applying K Operations | Leetcode 2530