Find Distinct Elements In Array In Java