Delete for equal strings
Your task
Given two strings s1 and s2, you may delete characters from either string. Return the lowest possible sum of ASCII codes of the deleted characters needed to make the two strings equal. The strings contain lowercase English letters, with lengths up to 1000.
Examples
min_ascii_delete_sum(s1: str, s2: str) -> intExample 1
Input
min_ascii_delete_sum("sea", "eat")Output
231