An original string, consisting of lowercase English letters, can be encoded by the following steps:
For example, one way to encode an original string "abcdefghijklmnop" might be:
["ab", "cdefghijklmn", "o", "p"].["ab", "12", "1", "p"]."ab121p".Given two encoded strings s1 and s2, consisting of lowercase English letters and digits 1-9 (inclusive), return true if there exists an original string that could be encoded as both s1 and s2. Otherwise, return false.
Note: The test cases are generated such that the number of consecutive digits in s1 and s2 does not exceed 3.
1 <= s1.length, s2.length <= 40s1 and s2 consist of digits 1-9 (inclusive), and lowercase English letters only.s1 and s2 does not exceed 3.s1 = "internationalization", s2 = "i18n"trues1 = "l123e", s2 = "44"trues1 = "a5b", s2 = "c5b"false