Remove Duplicate Elements From Array Using Hashmap