title: Sum Series 12 32 52 2N 12 1
signature: def sumSeries1232522N121(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(
        84, 
        790244    
      )}")   
  
  
      println(s"TEST-1...${driver(
        74, 
        540274    
      )}")   
  
  
      println(s"TEST-2...${driver(
        91, 
        1004731    
      )}")   
  
  
      println(s"TEST-3...${driver(
        34, 
        52394    
      )}")   
  
  
      println(s"TEST-4...${driver(
        36, 
        62196    
      )}")   
  
  
      println(s"TEST-5...${driver(
        28, 
        29260    
      )}")   
  
  
      println(s"TEST-6...${driver(
        70, 
        457310    
      )}")   
  
  
      println(s"TEST-7...${driver(
        7, 
        455    
      )}")   
  
  
      println(s"TEST-8...${driver(
        24, 
        18424    
      )}")   
  
  
      println(s"TEST-9...${driver(
        47, 
        138415    
      )}")   
  
  }
  
source_py: def sum_series_12_32_52_2n_12_1(n):
      return int((((n * ((2 * n) - 1)) * ((2 * n) + 1)) / 3))
source_cpp: int sum_series_12_32_52_2n_12_1(int n) {
    return ( n * ( 2 * n - 1 ) * ( 2 * n + 1 ) ) / 3;
  }