title: Add 1 To A Given Number 1
signature: add1ToAGivenNumber1(x) {
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(x, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(x), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          20, 
          21)
      }");
  
      print("TEST-1...${driver(
          68, 
          69)
      }");
  
      print("TEST-2...${driver(
          52, 
          53)
      }");
  
      print("TEST-3...${driver(
          61, 
          62)
      }");
  
      print("TEST-4...${driver(
          3, 
          4)
      }");
  
      print("TEST-5...${driver(
          88, 
          89)
      }");
  
      print("TEST-6...${driver(
          41, 
          42)
      }");
  
      print("TEST-7...${driver(
          78, 
          79)
      }");
  
      print("TEST-8...${driver(
          94, 
          95)
      }");
  
      print("TEST-9...${driver(
          18, 
          19)
      }");
  
      return 0;
  }
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 ) );
  }