Santander interview question

Return duplicated of an array