Write a program that takes keeps taking characters from the user till an ‘x’ is entered. Put each character in the list. Show the list.
Once the list is complete (i.e. x is entered in the list), tell the user how many members are in the list. Then ask the user if they want to swap any two indices. Take the index positions as input from the user, swap the elements, show the list, and that ends the program.