Check Duplicate Element In Array Using Pointers