616. Add Bold Tag in String

Given a string s and an array of strings words (dictionary), add bold tags <b> and </b> around each substring in s that matches any word in the dictionary. The bold sections should merge if they overlap.

Examples
Input: ["abcxyz123",["abc","123"]]
Output: "<b>abc</b>xyz<b>123</b>"
Hints
Related Problems

616. Add Bold Tag in String

Given a string `s` and an array of strings `words` (dictionary), add bold tags `<b>` and `</b>` around each substring in `s` that matches any word in the dictionary. The bold sections should merge if they overlap.