title: Turn Off The Rightmost Set Bit
signature: turnOffTheRightmostSetBit(n) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(n, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          9, 
          8)
      }");
  
      print("TEST-1...${driver(
          54, 
          52)
      }");
  
      print("TEST-2...${driver(
          60, 
          56)
      }");
  
      print("TEST-3...${driver(
          32, 
          0)
      }");
  
      print("TEST-4...${driver(
          41, 
          40)
      }");
  
      print("TEST-5...${driver(
          64, 
          0)
      }");
  
      print("TEST-6...${driver(
          4, 
          0)
      }");
  
      print("TEST-7...${driver(
          51, 
          50)
      }");
  
      print("TEST-8...${driver(
          57, 
          56)
      }");
  
      print("TEST-9...${driver(
          92, 
          88)
      }");
  
      return 0;
  }
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 );
  }