758.Bold Words in String
Given a set of keywordswordsand a stringS, make all appearances of all keywords inSbold. Any letters between<b>and</b>tags become bold.
The returned string should use the least number of tags possible, and of course the tags should form a valid combination.
For example, given thatwords = ["ab", "bc"]andS = "aabcd", we should return"a<b>abc</b>d". Note that returning"a<b>a<b>b</b>c</b>d"would use more tags, so it is incorrect.