1- Write a function noDuplicates that insert an item but before inserting the item it checks whether the item is already in the list. If the item to be inserted is already in the list, the function outputs an appropriate error message.
2- write a function that returns the info of the kth element of the linked list. If no such element exists, output an appropriate message.
by using link list