//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.