Check if a String contains Anagrams of length K which does not contain the character X
Given a string S, the task is to check if S contains a pair of substrings of length K which are anagrams of each other and doesn't contain the character X in them. If no such substring exists, print -1. Examples: Input: S = "geeksforgeeks", X = 'f', K = 5 Output: geeks geeks Explanation: Substrings