title: Sum Series 12 32 52 2N 12
signature: pub fn sum_series_12_32_52_2n_12(n: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(n: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        14, 
        3654
      ));
      
      println!("TEST-1...{}", driver(
        61, 
        302621
      ));
      
      println!("TEST-2...{}", driver(
        37, 
        67525
      ));
      
      println!("TEST-3...{}", driver(
        86, 
        848046
      ));
      
      println!("TEST-4...{}", driver(
        47, 
        138415
      ));
      
      println!("TEST-5...{}", driver(
        98, 
        1254890
      ));
      
      println!("TEST-6...{}", driver(
        70, 
        457310
      ));
      
      println!("TEST-7...{}", driver(
        24, 
        18424
      ));
      
      println!("TEST-8...{}", driver(
        76, 
        585276
      ));
      
      println!("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;
  }