title: Sum Series 12 32 52 2N 12
signature: def sumSeries1232522N12(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(
        14, 
        3654    
      )}")   
  
  
      println(s"TEST-1...${driver(
        61, 
        302621    
      )}")   
  
  
      println(s"TEST-2...${driver(
        37, 
        67525    
      )}")   
  
  
      println(s"TEST-3...${driver(
        86, 
        848046    
      )}")   
  
  
      println(s"TEST-4...${driver(
        47, 
        138415    
      )}")   
  
  
      println(s"TEST-5...${driver(
        98, 
        1254890    
      )}")   
  
  
      println(s"TEST-6...${driver(
        70, 
        457310    
      )}")   
  
  
      println(s"TEST-7...${driver(
        24, 
        18424    
      )}")   
  
  
      println(s"TEST-8...${driver(
        76, 
        585276    
      )}")   
  
  
      println(s"TEST-9...${driver(
        24, 
        18424    
      )}")   
  
  }
  
source_py: def sum_series_12_32_52_2n_12(n):
      sum = 0
      for i in range(1, (n + 1)):
          sum = (sum + (((2 * i) - 1) * ((2 * i) - 1)))
      return sum
source_cpp: int sum_series_12_32_52_2n_12(int n) {
    int sum = 0;
    for ( int i = 1;
    i <= n;
    i ++ ) sum = sum + ( 2 * i - 1 ) * ( 2 * i - 1 );
    return sum;
  }