Given a string s consisting of multiple words separated by spaces, and a list of strings elements, identify the first substring in each word of s that matches any string in elements. Once a match is found, wrap the substring in square brackets "[ ]".
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected