Given two strings in lowercase, your task is to find minimum number of manipulations required to make two strings anagram without deleting any character. If two strings contains same data set in any order then strings are called Anagrams.
S1 = "aba", S2 = "baa", N = 3
Explanation: Both the strings are already
S1 = "ddcf", S2 = "cedk", N = 4
Explanation: We can change 'e' and 'k' in
S2 to 'd' and 'f' to make both the strings
You don't need to read input or print anything. Your task is to complete the function minManipulation() which takes the strings S1 and S2 and their length N as inputs and returns the minimum number of manipulations required to make both the strings anagram.
Expected Time Complexity: O(N). Expected Auxiliary Space: O(1).