Write an algorithm to perform each of the following operations append an element to the end of the list? Delete the last element from the list?Delete the nth element from the list? Create a list containing the union of the elements of the two lists? Insert an element after the nth element of the list.?