Check if a string consists of two K-length non-overlapping substrings as anagrams
Given a string str of length N and an integer K, the task is to check if a string has two non-overlapping substrings of length K as anagrams. Examples: Input: str = "ginfing", K = 3Output: YesExplanation:"gin" and "ing" are the two non overlapping substrings of length 3 which are anagrams.Therefore,