title: Check Possible Transform One String Another
signature: function checkPossibleTransformOneStringAnother(s1: string, s2: string): boolean {
source_py: def check_possible_transform_one_string_another(s1, s2):
      n = len(s1)
      m = len(s2)
      dp = [[False for i in range((m + 1))] for i in range((n + 1))]
      dp[0][0] = True
      for i in range(len(s1)):
          for j in range((len(s2) + 1)):
              if dp[i][j]:
                  if ((j < len(s2)) and (s1[i].upper() == s2[j])):
                      dp[(i + 1)][(j + 1)] = True
                  if (s1[i].isupper() == False):
                      dp[(i + 1)][j] = True
      return dp[n][m]
source_cpp: bool check_possible_transform_one_string_another(string s1, string s2) {
    int n = s1 . length ( );
    int m = s2 . length ( );
    bool dp [ n + 1 ] [ m + 1 ];
    for ( int i = 0;
    i <= n;
    i ++ ) {
      for ( int j = 0;
      j <= m;
      j ++ ) {
        dp [ i ] [ j ] = false;
      }
    }
    dp [ 0 ] [ 0 ] = true;
    for ( int i = 0;
    i < s1 . length ( );
    i ++ ) {
      for ( int j = 0;
      j <= s2 . length ( );
      j ++ ) {
        if ( dp [ i ] [ j ] ) {
          if ( j < s2 . length ( ) && ( toupper ( s1 [ i ] ) == s2 [ j ] ) ) dp [ i + 1 ] [ j + 1 ] = true;
          if ( ! isupper ( s1 [ i ] ) ) dp [ i + 1 ] [ j ] = true;
        }
      }
    }
    return ( dp [ n ] [ m ] );
  }
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"s1": "daBcd", "s2": "ABC"}}, {"idx": 1, "outputs": false, "inputs": {"s1": "417514", "s2": "9"}}, {"idx": 2, "outputs": false, "inputs": {"s1": "010000", "s2": "1111011010"}}, {"idx": 3, "outputs": false, "inputs": {"s1": "ZcKYguiMrdyn", "s2": "iz"}}, {"idx": 4, "outputs": true, "inputs": {"s1": "argaju", "s2": "RAJ"}}, {"idx": 5, "outputs": false, "inputs": {"s1": "1110101101", "s2": "110101001"}}, {"idx": 6, "outputs": false, "inputs": {"s1": "ySOCoSaygi", "s2": "aRhxkYqh"}}, {"idx": 7, "outputs": false, "inputs": {"s1": "204", "s2": "6986871066"}}, {"idx": 8, "outputs": true, "inputs": {"s1": "10011100000010", "s2": "0"}}, {"idx": 9, "outputs": false, "inputs": {"s1": "nMAioozPmY", "s2": "WZFdDKw"}}]
question_info.entry_cls_name: Solution
question_info.test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: boolean, expected: boolean): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(s1: string, s2: string, expected:boolean): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(s1, s2),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver("daBcd", "ABC", true);
    console.log(`TEST-0...${result}`);
  
    result = driver("417514", "9", false);
    console.log(`TEST-1...${result}`);
  
    result = driver("010000", "1111011010", false);
    console.log(`TEST-2...${result}`);
  
    result = driver("ZcKYguiMrdyn", "iz", false);
    console.log(`TEST-3...${result}`);
  
    result = driver("argaju", "RAJ", true);
    console.log(`TEST-4...${result}`);
  
    result = driver("1110101101", "110101001", false);
    console.log(`TEST-5...${result}`);
  
    result = driver("ySOCoSaygi", "aRhxkYqh", false);
    console.log(`TEST-6...${result}`);
  
    result = driver("204", "6986871066", false);
    console.log(`TEST-7...${result}`);
  
    result = driver("10011100000010", "0", true);
    console.log(`TEST-8...${result}`);
  
    result = driver("nMAioozPmY", "WZFdDKw", false);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
question_info.extension: ts
question_info.entry_fn_name: checkPossibleTransformOneStringAnother
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: tsc --target es2020 --lib es5,dom,es2015,es2020 __FILENAME__
question_info.commands: node __FILENAME__.js