title: Nth Even Length Palindrome
signature: func nthEvenLengthPalindrome(n string) string {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual string, expected string) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(n string, expected string) string {
      if validateSolution(PLACEHOLDER_FN_NAME(n),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver("lSUhEvxcgfI", "lSUhEvxcgfIIfgcxvEhUSl")
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver("77329283", "7732928338292377")
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver("010111111", "010111111111111010")
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver("Stazb", "StazbbzatS")
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver("0702", "07022070")
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver("01111111", "0111111111111110")
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver("a", "aa")
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver("rznb", "rznbbnzr")
      fmt.Printf("TEST-7...%s\n", result)
      
          
  }
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;
  }