title: N Th Term Series 2 12 36 80 150
signature: def nThTermSeries2123680150(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(
        90, 
        737100    
      )}")   
  
  
      println(s"TEST-1...${driver(
        95, 
        866400    
      )}")   
  
  
      println(s"TEST-2...${driver(
        22, 
        11132    
      )}")   
  
  
      println(s"TEST-3...${driver(
        29, 
        25230    
      )}")   
  
  
      println(s"TEST-4...${driver(
        62, 
        242172    
      )}")   
  
  
      println(s"TEST-5...${driver(
        40, 
        65600    
      )}")   
  
  
      println(s"TEST-6...${driver(
        52, 
        143312    
      )}")   
  
  
      println(s"TEST-7...${driver(
        21, 
        9702    
      )}")   
  
  
      println(s"TEST-8...${driver(
        33, 
        37026    
      )}")   
  
  
      println(s"TEST-9...${driver(
        11, 
        1452    
      )}")   
  
  }
  
source_py: def n_th_term_series_2_12_36_80_150(n):
      return ((n * n) + ((n * n) * n))
source_cpp: int n_th_term_series_2_12_36_80_150(int n) {
    return ( n * n ) + ( n * n * n );
  }