Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to check the parity of each element and its previous element.
Solve with full IDE support and test cases