Given a string s and a pattern p (each viewed as a linked list of characters), return the starting indices of all substrings of s that are anagrams of p, in ascending order. Use a fixed-size sliding window with character counts. The input is JSON {s, p}. Return the indices as an array.
Input: JSON {s, p}.
Output: Array — the anagram start indices.
Input: {"s":"cbaebabacd","p":"abc"}
Output: [0,6]
Explanation: 'cba' at 0 and 'bac' at 6.Input: {"s":"abab","p":"ab"}
Output: [0,1,2]
Explanation: Three anagram windows.Input: {"s":"aa","p":"bb"}
Output: []
Explanation: No anagrams.1<=s.length<=10^51<=p.length<=10^4