Divum interview question

Remove duplicate without using builtin function