title: Quick Way Check Characters String
signature: function quick_way_check_characters_string(s)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(s, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(s), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver("", true);
      @printf("TEST-0...%s\n",result);
      
      result = driver("ggg", true);
      @printf("TEST-1...%s\n",result);
      
      result = driver("11", true);
      @printf("TEST-2...%s\n",result);
      
      result = driver("KoYIHns", false);
      @printf("TEST-3...%s\n",result);
      
      result = driver("232", false);
      @printf("TEST-4...%s\n",result);
      
      result = driver("10111000011101", false);
      @printf("TEST-5...%s\n",result);
      
      result = driver("DDDD", true);
      @printf("TEST-6...%s\n",result);
      
      result = driver("11", true);
      @printf("TEST-7...%s\n",result);
      
      result = driver("11111", true);
      @printf("TEST-8...%s\n",result);
      
      result = driver("ewJvixQzu", false);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
source_py: def quick_way_check_characters_string(s):
      n = len(s)
      for i in range(1, n):
          if (s[i] != s[0]):
              return False
      return True
source_cpp: bool quick_way_check_characters_string(string s) {
    int n = s . length ( );
    for ( int i = 1;
    i < n;
    i ++ ) if ( s [ i ] != s [ 0 ] ) return false;
    return true;
  }