title: How To Turn Off A Particular Bit In A Number
signature: def howToTurnOffAParticularBitInANumber(n: Int, k: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(n: Int, k: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n, k),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        49, 15, 
        49    
      )}")   
  
  
      println(s"TEST-1...${driver(
        59, 69, 
        59    
      )}")   
  
  
      println(s"TEST-2...${driver(
        76, 20, 
        76    
      )}")   
  
  
      println(s"TEST-3...${driver(
        27, 76, 
        27    
      )}")   
  
  
      println(s"TEST-4...${driver(
        61, 60, 
        61    
      )}")   
  
  
      println(s"TEST-5...${driver(
        67, 27, 
        67    
      )}")   
  
  
      println(s"TEST-6...${driver(
        63, 71, 
        63    
      )}")   
  
  
      println(s"TEST-7...${driver(
        85, 25, 
        85    
      )}")   
  
  
      println(s"TEST-8...${driver(
        90, 64, 
        90    
      )}")   
  
  
      println(s"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 ) ) );
  }