title: How To Turn Off A Particular Bit In A Number
signature: fun howToTurnOffAParticularBitInANumber(n: Int, k: Int): Int {
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 ) ) );
  }
question_info.test_list: [{"idx": 0, "outputs": 49, "inputs": {"n": 49, "k": 15}}, {"idx": 1, "outputs": 59, "inputs": {"n": 59, "k": 69}}, {"idx": 2, "outputs": 76, "inputs": {"n": 76, "k": 20}}, {"idx": 3, "outputs": 27, "inputs": {"n": 27, "k": 76}}, {"idx": 4, "outputs": 61, "inputs": {"n": 61, "k": 60}}, {"idx": 5, "outputs": 67, "inputs": {"n": 67, "k": 27}}, {"idx": 6, "outputs": 63, "inputs": {"n": 63, "k": 71}}, {"idx": 7, "outputs": 85, "inputs": {"n": 85, "k": 25}}, {"idx": 8, "outputs": 90, "inputs": {"n": 90, "k": 64}}, {"idx": 9, "outputs": 24, "inputs": {"n": 24, "k": 55}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, k: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n, k), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(49, 15, 49)
      println("TEST-0...${result}")
      
      result = driver(59, 69, 59)
      println("TEST-1...${result}")
      
      result = driver(76, 20, 76)
      println("TEST-2...${result}")
      
      result = driver(27, 76, 27)
      println("TEST-3...${result}")
      
      result = driver(61, 60, 61)
      println("TEST-4...${result}")
      
      result = driver(67, 27, 67)
      println("TEST-5...${result}")
      
      result = driver(63, 71, 63)
      println("TEST-6...${result}")
      
      result = driver(85, 25, 85)
      println("TEST-7...${result}")
      
      result = driver(90, 64, 90)
      println("TEST-8...${result}")
      
      result = driver(24, 55, 24)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: howToTurnOffAParticularBitInANumber
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn