Enhance IT interview question

Remove duplicates from an array. Rotate an array.