Can you make this code replace"Samantha" with "Charlotte" and print the updated array?

Great! We declare and initialize names. Then we replace "Samantha" with "Charlotte", convert the array to a string and print it.

Yikes! We declare and initialize names. Then we replace "Samantha" with "Charlotte", convert the array to a string and print it.