Given two strings S1 and S2 in lowercase, the task is to make them anagram. The only allowed operation is to remove a character from any string. Find minimum number of characters to be deleted to make both the strings anagram. If two strings contains same data set in any order then strings are called Anagrams.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of 2 strings to make the anagrams.
For each testcase, in a new line, output the minimum number of characters to be deleted to make both the strings anagram.
Since this is a function problem, you don't need to take any input. Just complete the provided function.
1 <= T <= 100
1 <= |S1|, |S2| <= 105
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.