Cisco Interview Question

Group even and odd elements from an array