Find the Number of K-Even Arrays
Track how many arrays end on an even or odd value for each count of good pairs, then extend one entry at a time.
Track how many arrays end on an even or odd value for each count of good pairs, then extend one entry at a time.