Microsoft interview question

Given an array containing repeated lower case alphabets return an array which has all characters once without changing their relative ordering.