Interleaving Of Two Strings

medium
1. You are given three strings - s1, s2 and s3.
2. You have to find whether s3 is formed by interleaving of s1 and s2.
3. s3 is interleaving if it contains all characters of s1 and s2, and order of all characters in individual string is preserved.

Input Format

String s1 String s2 String s3

Output Format

true/false

Constraints

1 <= s1.length() <= 100
1 <= s2.length() <= 100
1 <= s3.length() <= 200

Example

Input
aabcc
dbbca
aadbbcbcac
Output
true
Previous
Find Water In Glass
Next
Distinct Echo Substrings

Related Questions