Delete for equal strings

Write codeMedium25 min

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) -> int
Example 1
Inputmin_ascii_delete_sum("sea", "eat")
Output231