Remove Duplicate Elements From Array Using Pointers