// there are multiple ways to solve this problem. // one technique is to take all substrings in s which is of length(p) // then sort that substring and sort p and compare both.