Santander Interview Question

Return duplicated of an array