title: Add 1 To A Given Number 1
signature: function add1ToAGivenNumber1($x) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($x, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($x), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        20, 
        21));
      
      printf("TEST-1...%s\n",driver(
        68, 
        69));
      
      printf("TEST-2...%s\n",driver(
        52, 
        53));
      
      printf("TEST-3...%s\n",driver(
        61, 
        62));
      
      printf("TEST-4...%s\n",driver(
        3, 
        4));
      
      printf("TEST-5...%s\n",driver(
        88, 
        89));
      
      printf("TEST-6...%s\n",driver(
        41, 
        42));
      
      printf("TEST-7...%s\n",driver(
        78, 
        79));
      
      printf("TEST-8...%s\n",driver(
        94, 
        95));
      
      printf("TEST-9...%s\n",driver(
        18, 
        19));
      
  }
  
  main();
  ?>
source_py: def add_1_to_a_given_number_1(x):
      return (- (~ x))
source_cpp: int add_1_to_a_given_number_1(int x) {
    return ( - ( ~ x ) );
  }