title: Number Non Negative Integral Solutions B C N 1
signature: def numberNonNegativeIntegralSolutionsBCN1(n: 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(n: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        41, 
        903    
      )}")   
  
  
      println(s"TEST-1...${driver(
        72, 
        2701    
      )}")   
  
  
      println(s"TEST-2...${driver(
        54, 
        1540    
      )}")   
  
  
      println(s"TEST-3...${driver(
        75, 
        2926    
      )}")   
  
  
      println(s"TEST-4...${driver(
        87, 
        3916    
      )}")   
  
  
      println(s"TEST-5...${driver(
        41, 
        903    
      )}")   
  
  
      println(s"TEST-6...${driver(
        78, 
        3160    
      )}")   
  
  
      println(s"TEST-7...${driver(
        80, 
        3321    
      )}")   
  
  
      println(s"TEST-8...${driver(
        46, 
        1128    
      )}")   
  
  
      println(s"TEST-9...${driver(
        9, 
        55    
      )}")   
  
  }
  
source_py: def number_non_negative_integral_solutions_b_c_n_1(n):
      return int((((n + 1) * (n + 2)) / 2))
source_cpp: int number_non_negative_integral_solutions_b_c_n_1(int n) {
    return ( ( n + 1 ) * ( n + 2 ) ) / 2;
  }