title: Check Possible Transform One String Another
signature: fun 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.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Boolean, expected:Boolean):Boolean{
    return actual.equals(expected)
  }
  fun driver(s1: String, s2: String, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(s1, s2), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver("daBcd", "ABC", true)
      println("TEST-0...${result}")
      
      result = driver("417514", "9", false)
      println("TEST-1...${result}")
      
      result = driver("010000", "1111011010", false)
      println("TEST-2...${result}")
      
      result = driver("ZcKYguiMrdyn", "iz", false)
      println("TEST-3...${result}")
      
      result = driver("argaju", "RAJ", true)
      println("TEST-4...${result}")
      
      result = driver("1110101101", "110101001", false)
      println("TEST-5...${result}")
      
      result = driver("ySOCoSaygi", "aRhxkYqh", false)
      println("TEST-6...${result}")
      
      result = driver("204", "6986871066", false)
      println("TEST-7...${result}")
      
      result = driver("10011100000010", "0", true)
      println("TEST-8...${result}")
      
      result = driver("nMAioozPmY", "WZFdDKw", false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: checkPossibleTransformOneStringAnother
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn