title: Nth Even Length Palindrome
signature: pub fn nth_even_length_palindrome(n: String) -> String {
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: String, expected: String)->bool{
  return actual==expected
  }
  pub fn driver(n: String, expected: String)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        "lSUhEvxcgfI".to_string(), 
        "lSUhEvxcgfIIfgcxvEhUSl".to_string()
      ));
      
      println!("TEST-1...{}", driver(
        "77329283".to_string(), 
        "7732928338292377".to_string()
      ));
      
      println!("TEST-2...{}", driver(
        "010111111".to_string(), 
        "010111111111111010".to_string()
      ));
      
      println!("TEST-3...{}", driver(
        "Stazb".to_string(), 
        "StazbbzatS".to_string()
      ));
      
      println!("TEST-4...{}", driver(
        "0702".to_string(), 
        "07022070".to_string()
      ));
      
      println!("TEST-5...{}", driver(
        "01111111".to_string(), 
        "0111111111111110".to_string()
      ));
      
      println!("TEST-6...{}", driver(
        "a".to_string(), 
        "aa".to_string()
      ));
      
      println!("TEST-7...{}", driver(
        "rznb".to_string(), 
        "rznbbnzr".to_string()
      ));
      
  }
source_py: def nth_even_length_palindrome(n):
      res = n
      for j in range((len(n) - 1), (- 1), (- 1)):
          res += n[j]
      return res
source_cpp: string nth_even_length_palindrome(string n) {
    string res = n;
    for ( int j = n . length ( ) - 1;
    j >= 0;
    -- j ) res += n [ j ];
    return res;
  }