title: Turn Off The Rightmost Set Bit
signature: def turnOffTheRightmostSetBit(n: 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, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        9, 
        8    
      )}")   
  
  
      println(s"TEST-1...${driver(
        54, 
        52    
      )}")   
  
  
      println(s"TEST-2...${driver(
        60, 
        56    
      )}")   
  
  
      println(s"TEST-3...${driver(
        32, 
        0    
      )}")   
  
  
      println(s"TEST-4...${driver(
        41, 
        40    
      )}")   
  
  
      println(s"TEST-5...${driver(
        64, 
        0    
      )}")   
  
  
      println(s"TEST-6...${driver(
        4, 
        0    
      )}")   
  
  
      println(s"TEST-7...${driver(
        51, 
        50    
      )}")   
  
  
      println(s"TEST-8...${driver(
        57, 
        56    
      )}")   
  
  
      println(s"TEST-9...${driver(
        92, 
        88    
      )}")   
  
  }
  
source_py: def turn_off_the_rightmost_set_bit(n):
      return (n & (n - 1))
source_cpp: int turn_off_the_rightmost_set_bit(unsigned int n) {
    return n & ( n - 1 );
  }