store names values in array without duplicacy(first check whether it has same value if same then not add in array if not then added.) : [Hi guys please help me, i want to add names in array but without duplicacy at specific loaction.
if the array has same value then it is not added into the array or vice versa
Any kind of help is Appreciated.][1]


  [1]: https://i.stack.imgur.com/OPMK5.png