Comcast interview question

Bubble sort, Remove duplicate in array