title: Quick Way Check Characters String
signature: def quickWayCheckCharactersString(s: String) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Boolean , expected: Boolean): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(s: String, expected: Boolean): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(s),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        "", 
        true    
      )}")   
  
  
      println(s"TEST-1...${driver(
        "ggg", 
        true    
      )}")   
  
  
      println(s"TEST-2...${driver(
        "11", 
        true    
      )}")   
  
  
      println(s"TEST-3...${driver(
        "KoYIHns", 
        false    
      )}")   
  
  
      println(s"TEST-4...${driver(
        "232", 
        false    
      )}")   
  
  
      println(s"TEST-5...${driver(
        "10111000011101", 
        false    
      )}")   
  
  
      println(s"TEST-6...${driver(
        "DDDD", 
        true    
      )}")   
  
  
      println(s"TEST-7...${driver(
        "11", 
        true    
      )}")   
  
  
      println(s"TEST-8...${driver(
        "11111", 
        true    
      )}")   
  
  
      println(s"TEST-9...${driver(
        "ewJvixQzu", 
        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;
  }