Topic: Array Problem / Level: intermediate

Problem: Rearrange an array such that all even numbers appear before odd numbers, and all elements are sorted within their group.

Run the code to see the output here...