Given two strings S1 and S2 consisting of only lowercase characters whose anagrams are almost equal. The task is to count the number of characters which needs to be edited(delete) to make S1 equal to S2.
String S1 = madame, string S2 = madam. character 'e' in first string is need to be deleted to make S1 equal to S2.
String S1 = suryansh, string S2 = suryanshzzawesome.
All character after "suryansh" in second string are
need to be deleted to make S1 equal to S2.