title: Change Bits Can Made One Flip
signature: pub fn change_bits_can_made_one_flip(str: 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(str: String, expected: bool)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(str), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        "00001".to_string(), 
        true
      ));
      
      println!("TEST-1...{}", driver(
        "0000".to_string(), 
        false
      ));
      
      println!("TEST-2...{}", driver(
        "11".to_string(), 
        false
      ));
      
      println!("TEST-3...{}", driver(
        "111110".to_string(), 
        true
      ));
      
      println!("TEST-4...{}", driver(
        "1".to_string(), 
        true
      ));
      
      println!("TEST-5...{}", driver(
        "111010111010".to_string(), 
        false
      ));
      
      println!("TEST-6...{}", driver(
        "hUInqJXNdbfP".to_string(), 
        false
      ));
      
      println!("TEST-7...{}", driver(
        "5191".to_string(), 
        false
      ));
      
      println!("TEST-8...{}", driver(
        "1110101101".to_string(), 
        false
      ));
      
      println!("TEST-9...{}", driver(
        "NupSrU xz".to_string(), 
        false
      ));
      
  }
source_py: def change_bits_can_made_one_flip(str):
      zeros = 0
      ones = 0
      for i in range(0, len(str)):
          ch = str[i]
          if (ch == '0'):
              zeros = (zeros + 1)
          else:
              ones = (ones + 1)
      return ((zeros == 1) or (ones == 1))
source_cpp: bool change_bits_can_made_one_flip(string str) {
    int zeros = 0, ones = 0;
    for ( char ch : str ) ( ch == '0' ) ? ++ zeros : ++ ones;
    return ( zeros == 1 || ones == 1 );
  }