I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
Not sure if your code will pass the test, but you do have a small issue in your function.
Your map is being done, but since it is not assigned to a variable, its discarded (useless).
So just need to modify this line: spt=spt.map((n)=> {
Now, when you execute it, this is the result (according to your code):
(5) ["I'm", "A", "Little", "Tea", "Pot"] "I'm A Little Tea Pot "