Given two strings s and p, return an array of all the start indices of p's anagrams in s. You may return the answer in any order.
- Two strings
sandp.
Input: s = "cbaebabacd", p = "abc"
Output: [0, 6]
Explanation: The substring with index 0 is "cba", which is an anagram of "abc". The substring with index 6 is "bac", which is an anagram of "abc".