String check(DP problem)

check if a string can be comprised by two other string