Given a list of strings words and a string note, return true if an anagram of any word in words can be found in note, otherwise return false.
The letters of the anagram can be in any order and need not be next to each other in note, but each letter of note can be used at most once.
boolean canFindAnagram(List<String> words, String note)
words: candidate wordsnote: string to search in1 ≤ words.size() ≤ 1,0001 ≤ words.get(i).length() ≤ 1001 ≤ note.length() ≤ 100,000words.get(i) and note contain only lowercase English lettersInput: canFindAnagram(words = ["cat", "dog", "bird"], note = "golden")
Output: true
Explanation: The letters 'd', 'o' and 'g' of "dog" all occur in "golden".
Input: canFindAnagram(words = ["moon", "star"], note = "monday")
Output: false
Explanation: "moon" needs two 'o' but "monday" has only one, and "star" needs an 's', which "monday" lacks.
Input: canFindAnagram(words = ["peel"], note = "pebble")
Output: true
Explanation: "peel" needs one 'p', two 'e' and one 'l', and "pebble" has all of them.