Company: QuickSell
Difficulty: medium
Permutation in String Problem Description You are given two strings s1 and s2 consisting of lowercase characters. You need to return true , if s2 contains a permutation of s1 , or false otherwise. In other words, return true if one of s1 's permutations is the substring of s2 . The function isPermutation() accepts the parameters string s1 and s2 . Complete the function isPermutation() and returns the check_string in boolean format. For Example: If the string s1 is tac and s2 is catering then one of the permutation of tac i.e. cat is present in the catering . Hence return true . Examples Example 1: Input: s1=qwd s2= wdfijewjewewswf Output: check_string= False Example 2: Input: s1=qwa Constraints 1 <= s1.size, s2.size <= 1000