title: Check Possible Transform One String Another
signature: function check_possible_transform_one_string_another(s1, s2)
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.entry_fn_name: check_possible_transform_one_string_another
question_info.entry_cls_name: Solution
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.test_code: 
  
  -- SOLUTION CODE
  -- ============================================
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  function isCorrect(actual, expected)
      if type(expected) ~= type(actual) then
          return false
      end
      
      if type(expected) == 'table' then
          for k,v_expected in pairs(expected) do
              
              if actual[k] == nil then
                  return false
              end
              local v_actual = actual[k]
              if not isCorrect(v_actual, v_expected) then
                  return false
              end
              actual[k]=nil
          end
      
          if next(actual) then 
              return false
          end
          return true
      else
          return actual == expected
      end
  end
  
  function validateSolution(actual, expected)
      return isCorrect(actual,expected)
  end
  
  function driver(s1, s2, expected)
      local exec_result;
      local status, error_msg = pcall(function () 
          exec_result=PLACEHOLDER_FN_NAME(s1, s2) 
      end)
      if status then
          if validateSolution(exec_result,expected) then
              return "PASSED"
          end
          return "FAILED"
      else
          return string.format("ERROR=%s",string.gsub(error_msg,".*:[%d]+: ",""))
      end
  end
      
  function main()
      result = driver("daBcd", "ABC", true)
      print(string.format("TEST-0...%s",result))
  
      result = driver("417514", "9", false)
      print(string.format("TEST-1...%s",result))
  
      result = driver("010000", "1111011010", false)
      print(string.format("TEST-2...%s",result))
  
      result = driver("ZcKYguiMrdyn", "iz", false)
      print(string.format("TEST-3...%s",result))
  
      result = driver("argaju", "RAJ", true)
      print(string.format("TEST-4...%s",result))
  
      result = driver("1110101101", "110101001", false)
      print(string.format("TEST-5...%s",result))
  
      result = driver("ySOCoSaygi", "aRhxkYqh", false)
      print(string.format("TEST-6...%s",result))
  
      result = driver("204", "6986871066", false)
      print(string.format("TEST-7...%s",result))
  
      result = driver("10011100000010", "0", true)
      print(string.format("TEST-8...%s",result))
  
      result = driver("nMAioozPmY", "WZFdDKw", false)
      print(string.format("TEST-9...%s",result))
  
  end
  
  main()
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"}}]