title: Quick Way Check Characters String
signature: function quickWayCheckCharactersString(s) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(s, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(s),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver("", true);
    console.log(`TEST-0...${result}`);
  
    result = driver("ggg", true);
    console.log(`TEST-1...${result}`);
  
    result = driver("11", true);
    console.log(`TEST-2...${result}`);
  
    result = driver("KoYIHns", false);
    console.log(`TEST-3...${result}`);
  
    result = driver("232", false);
    console.log(`TEST-4...${result}`);
  
    result = driver("10111000011101", false);
    console.log(`TEST-5...${result}`);
  
    result = driver("DDDD", true);
    console.log(`TEST-6...${result}`);
  
    result = driver("11", true);
    console.log(`TEST-7...${result}`);
  
    result = driver("11111", true);
    console.log(`TEST-8...${result}`);
  
    result = driver("ewJvixQzu", false);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    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;
  }