title: Check Possible Transform One String Another
signature: class Solution {
  
      public bool CheckPossibleTransformOneStringAnother(string s1, string s2) {
test_code: using System;
  using System.Numerics;
  using System.Diagnostics;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Security.Cryptography;
  using System.Web.UI;
  using System.Web.Script.Serialization;
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  namespace EvaluatePrediction {
      class TestRunner {
          public bool ValidateSolution(bool actual, bool expected){
              return new JavaScriptSerializer().Serialize(actual) == new JavaScriptSerializer().Serialize(expected);
          }
  
          public string driver(string s1, string s2, bool expected){
              try{
                PLACEHOLDER_CLS_NAME solution_cls = new PLACEHOLDER_CLS_NAME();
                bool pred_result = solution_cls.PLACEHOLDER_FN_NAME(s1, s2); 
                if (ValidateSolution(
                      pred_result,
                      expected)){
                  return "PASSED";
                }
                return "FAILED";
              } 
              catch (Exception exception_obj)
              {
                return exception_obj.GetType().FullName;
              }
          }
          static void Main(string[] args) {
              TestRunner runner = new TestRunner();
              String result;
              result = runner.driver(
                  "daBcd", "ABC", 
                  true
              );
              Console.WriteLine(string.Format(
                  "TEST-0...{0}",
                  result)
              );result = runner.driver(
                  "417514", "9", 
                  false
              );
              Console.WriteLine(string.Format(
                  "TEST-1...{0}",
                  result)
              );result = runner.driver(
                  "010000", "1111011010", 
                  false
              );
              Console.WriteLine(string.Format(
                  "TEST-2...{0}",
                  result)
              );result = runner.driver(
                  "ZcKYguiMrdyn", "iz", 
                  false
              );
              Console.WriteLine(string.Format(
                  "TEST-3...{0}",
                  result)
              );result = runner.driver(
                  "argaju", "RAJ", 
                  true
              );
              Console.WriteLine(string.Format(
                  "TEST-4...{0}",
                  result)
              );result = runner.driver(
                  "1110101101", "110101001", 
                  false
              );
              Console.WriteLine(string.Format(
                  "TEST-5...{0}",
                  result)
              );result = runner.driver(
                  "ySOCoSaygi", "aRhxkYqh", 
                  false
              );
              Console.WriteLine(string.Format(
                  "TEST-6...{0}",
                  result)
              );result = runner.driver(
                  "204", "6986871066", 
                  false
              );
              Console.WriteLine(string.Format(
                  "TEST-7...{0}",
                  result)
              );result = runner.driver(
                  "10011100000010", "0", 
                  true
              );
              Console.WriteLine(string.Format(
                  "TEST-8...{0}",
                  result)
              );result = runner.driver(
                  "nMAioozPmY", "WZFdDKw", 
                  false
              );
              Console.WriteLine(string.Format(
                  "TEST-9...{0}",
                  result)
              );
          }
      }
  }
  
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 ] );
  }