Pregunta de entrevista de Google

Array to be doubled then shuffle. Reverse the functionality.