Enhance IT Interview Question

Remove duplicates from an array. Rotate an array.