Company: Ibm_2Nov
Difficulty: medium
Anagram Transformation Problem Description Given a string consisting solely of digits, modify the first half of the string to become an anagram of the second half. Determine the minimum number of operations required to achieve this. In one operation, replace any digit in the string with any other digit (0-9). Function Description Complete the function getAnagram in the editor with the following parameter: string s : a string of digits Returns int : the minimum number of operations needed to make the string's first half an anagram of its second half Examples Example 1: Input: s = "123212" Output: 1 Explanation: The first half is '123' and the second half is '212'. Change the 3 in the first half to 2, resulting in '122', an anagram of the second half. This requires 1 operation. Example 2: Input: s = "123456" Output: 3 Explanation: The first half, '123', can be converted to '456' in 3 operations. Converting it to '465', '546', '654', etc. would also work, but in all cases, it requires 3 o