title: Quick Way Check Characters String
signature: pub fn quick_way_check_characters_string(s: String) -> bool {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: bool, expected: bool)->bool{
  return actual==expected
  }
  pub fn driver(s: String, expected: bool)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(s), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        "".to_string(), 
        true
      ));
      
      println!("TEST-1...{}", driver(
        "ggg".to_string(), 
        true
      ));
      
      println!("TEST-2...{}", driver(
        "11".to_string(), 
        true
      ));
      
      println!("TEST-3...{}", driver(
        "KoYIHns".to_string(), 
        false
      ));
      
      println!("TEST-4...{}", driver(
        "232".to_string(), 
        false
      ));
      
      println!("TEST-5...{}", driver(
        "10111000011101".to_string(), 
        false
      ));
      
      println!("TEST-6...{}", driver(
        "DDDD".to_string(), 
        true
      ));
      
      println!("TEST-7...{}", driver(
        "11".to_string(), 
        true
      ));
      
      println!("TEST-8...{}", driver(
        "11111".to_string(), 
        true
      ));
      
      println!("TEST-9...{}", driver(
        "ewJvixQzu".to_string(), 
        false
      ));
      
  }
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;
  }