title: Sum Series 12 32 52 2N 12
signature: fun sumSeries1232522N12(n: Int): Int {
test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(14, 3654)
      println("TEST-0...${result}")
      
      result = driver(61, 302621)
      println("TEST-1...${result}")
      
      result = driver(37, 67525)
      println("TEST-2...${result}")
      
      result = driver(86, 848046)
      println("TEST-3...${result}")
      
      result = driver(47, 138415)
      println("TEST-4...${result}")
      
      result = driver(98, 1254890)
      println("TEST-5...${result}")
      
      result = driver(70, 457310)
      println("TEST-6...${result}")
      
      result = driver(24, 18424)
      println("TEST-7...${result}")
      
      result = driver(76, 585276)
      println("TEST-8...${result}")
      
      result = driver(24, 18424)
      println("TEST-9...${result}")
      
          
  }
  
  main()
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;
  }