Maximum Difference Between Even and Odd Frequency II | Leetcode 3445