ExpediaSoftware Engineer · Technical ScreenCodemia practiceDetect permutation in string
Given two strings, s1 and s2, determine if s2 contains any permutation of s1 as a substring. You should return true if such a permutation exists, and false otherwise. The solution should efficiently handle the input strings, considering their lengths and character distributions.