title: How To Turn Off A Particular Bit In A Number
signature: pub fn how_to_turn_off_a_particular_bit_in_a_number(n: i32, k: i32) -> i32 {
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: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(n: i32, k: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n, k), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        49, 15, 
        49
      ));
      
      println!("TEST-1...{}", driver(
        59, 69, 
        59
      ));
      
      println!("TEST-2...{}", driver(
        76, 20, 
        76
      ));
      
      println!("TEST-3...{}", driver(
        27, 76, 
        27
      ));
      
      println!("TEST-4...{}", driver(
        61, 60, 
        61
      ));
      
      println!("TEST-5...{}", driver(
        67, 27, 
        67
      ));
      
      println!("TEST-6...{}", driver(
        63, 71, 
        63
      ));
      
      println!("TEST-7...{}", driver(
        85, 25, 
        85
      ));
      
      println!("TEST-8...{}", driver(
        90, 64, 
        90
      ));
      
      println!("TEST-9...{}", driver(
        24, 55, 
        24
      ));
      
  }
source_py: def how_to_turn_off_a_particular_bit_in_a_number(n, k):
      if (k <= 0):
          return n
      return (n & (~ (1 << (k - 1))))
source_cpp: int how_to_turn_off_a_particular_bit_in_a_number(int n, int k) {
    if ( k <= 0 ) return n;
    return ( n & ~ ( 1 << ( k - 1 ) ) );
  }