Given an array of strings words, return an array containing every character that appears in each string in words, including duplicates. If a character occurs multiple times in all strings, include it in the result that many times. The returned characters may be in any order.
Constraints:
words.length
words[i].length
words[i] consists of lowercase English letters.
Given an array of strings words, return an array containing every character that appears in each string in words, including duplicates. If a character occurs multiple times in all strings, include it in the result that many times. The returned characters may be in any order.
Constraints:
words.length
words[i].length
words[i] consists of lowercase English letters.