title: How To Turn Off A Particular Bit In A Number
signature: function how_to_turn_off_a_particular_bit_in_a_number(n, k)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(n, k, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(n, k), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(49, 15, 49);
      @printf("TEST-0...%s\n",result);
      
      result = driver(59, 69, 59);
      @printf("TEST-1...%s\n",result);
      
      result = driver(76, 20, 76);
      @printf("TEST-2...%s\n",result);
      
      result = driver(27, 76, 27);
      @printf("TEST-3...%s\n",result);
      
      result = driver(61, 60, 61);
      @printf("TEST-4...%s\n",result);
      
      result = driver(67, 27, 67);
      @printf("TEST-5...%s\n",result);
      
      result = driver(63, 71, 63);
      @printf("TEST-6...%s\n",result);
      
      result = driver(85, 25, 85);
      @printf("TEST-7...%s\n",result);
      
      result = driver(90, 64, 90);
      @printf("TEST-8...%s\n",result);
      
      result = driver(24, 55, 24);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
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 ) ) );
  }