Infosys interview question

Given an array of numbers, write a function to return only the even numbers.