Pergunta de entrevista da empresa Publicis Sapient

Given an array, duplicate all the even numbers and return the modified array.