Find element appears once in an array