You get a List called words. Each word in it is in lowercase letters.
Return a new List with every word shouted.
To shout a word, write it in capital letters and put ! after it. So "hey" becomes "HEY!".
Keep the words in the same order.
Example 1:
Input: words = ["hey", "you"] Output: ["HEY!", "YOU!"] Explanation: Both words are in capital letters now. Each one has a ! at the end.
Example 2:
Input: words = ["go"] Output: ["GO!"] Explanation: One word goes in, one word comes out.
Example 3:
Input: words = ["no", "no", "no"] Output: ["NO!", "NO!", "NO!"] Explanation: A word that repeats is shouted each time.
Constraints:
wordshas at least one word.- Every word has only the letters a to z.
Free plan: 30 tutor messages. PRO is unlimited.
Saved
Ctrl + Enter to check
