title: Add 1 To A Given Number 1
signature: def add1ToAGivenNumber1(x: 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(x: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(x),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        20, 
        21    
      )}")   
  
  
      println(s"TEST-1...${driver(
        68, 
        69    
      )}")   
  
  
      println(s"TEST-2...${driver(
        52, 
        53    
      )}")   
  
  
      println(s"TEST-3...${driver(
        61, 
        62    
      )}")   
  
  
      println(s"TEST-4...${driver(
        3, 
        4    
      )}")   
  
  
      println(s"TEST-5...${driver(
        88, 
        89    
      )}")   
  
  
      println(s"TEST-6...${driver(
        41, 
        42    
      )}")   
  
  
      println(s"TEST-7...${driver(
        78, 
        79    
      )}")   
  
  
      println(s"TEST-8...${driver(
        94, 
        95    
      )}")   
  
  
      println(s"TEST-9...${driver(
        18, 
        19    
      )}")   
  
  }
  
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 ) );
  }