Vodafone Interview Question

Return the object with 2 objects: first with odds numbers, second with even numbers. You have an array from the start.