Pergunta de entrevista da empresa Google

Array to be doubled then shuffle. Reverse the functionality.