Google interview question

Array to be doubled then shuffle. Reverse the functionality.