title: Add 1 To A Given Number 1
signature: func add1ToAGivenNumber1(x int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(x int, expected int) string {
      if validateSolution(PLACEHOLDER_FN_NAME(x),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(20, 21)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(68, 69)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(52, 53)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(61, 62)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(3, 4)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(88, 89)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(41, 42)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(78, 79)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(94, 95)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(18, 19)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
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 ) );
  }