title: Add 1 To A Given Number 1
signature: class Solution {
  
      public Integer add1ToAGivenNumber1(Integer x) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer x, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(x,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(20, 21);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(68, 69);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(52, 53);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(61, 62);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(3, 4);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(88, 89);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(41, 42);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(78, 79);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(94, 95);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(18, 19);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer x, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(x),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
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 ) );
  }