Given an array of integers, rearrange it so all even numbers come before all odd numbers. Any order within each group is acceptable.
Example 1
Explanation: Evens (4, 2) move to the front and odds (1, 3) move to the back; the exact order within each group is not required.
Example 2
Explanation: Only one odd value exists, so it moves to the end while the two evens stay ahead of it.
Code execution is coming soon.