title: Quick Way Check Characters String
signature: function quickWayCheckCharactersString($s) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($s, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($s), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        "", 
        true));
      
      printf("TEST-1...%s\n",driver(
        "ggg", 
        true));
      
      printf("TEST-2...%s\n",driver(
        "11", 
        true));
      
      printf("TEST-3...%s\n",driver(
        "KoYIHns", 
        false));
      
      printf("TEST-4...%s\n",driver(
        "232", 
        false));
      
      printf("TEST-5...%s\n",driver(
        "10111000011101", 
        false));
      
      printf("TEST-6...%s\n",driver(
        "DDDD", 
        true));
      
      printf("TEST-7...%s\n",driver(
        "11", 
        true));
      
      printf("TEST-8...%s\n",driver(
        "11111", 
        true));
      
      printf("TEST-9...%s\n",driver(
        "ewJvixQzu", 
        false));
      
  }
  
  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;
  }