I just need another set of eyes, this is driving me crazy.

I have a function that takes an array, and tries to find and remove duplicates by storing unique strings in the temp[]. The code...