//a function to search whether a name is in the list
//if found, return the index of the name
//otherwise, return -1.


//To remove the item of index j from a nameList
//After a "while" loop, the last item is duplicate.
//So, use pop() to delete the duplicate item.