Maximize Subarrays After Removing One Conflicting Pair | Leetcode 3480 | Greedy