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.
Input: s = "cbaebabacd", p = "abc"
Output: [0,6]
Explanation: Anagrams 'cba' at 0 and 'bac' at 6.
Topics: strings, sliding-window, hash-map
Asked by: Amazon, Google, Meta, Microsoft
Time complexity: O(n). Space complexity: O(1).