Company: IBM_15june
Difficulty: medium
Minimum Cost to Equalize Strings Problem Description You are given two strings s1 and s2 . Your task is to transform both strings into a common string by deleting characters from both strings. The goal is to minimize the total deletion cost, where the deletion cost of a character is equal to its ASCII value. Both strings should be transformed to the same common string. Cost Calculation: Each time you delete a character from either string, you add the ASCII value of that character to a running total. The objective is to minimize the sum of these ASCII values after both strings become identical. Goal: Write a function that returns the minimum cost (sum of ASCII values) of deletions required to make both strings equal. Function Description Complete the function minimumCostToEqualizeStrings in the editor below. Parameters: s1 (string): The first input string. s2 (string): The second input string. Returns: The function is expected to return an INTEGER , representing the minimum cost.