title: Nth Even Length Palindrome
signature: class Solution {
  
      public String nthEvenLengthPalindrome(String n) {
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;
  }
question_info.extension: java
question_info.entry_fn_name: nthEvenLengthPalindrome
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": "lSUhEvxcgfIIfgcxvEhUSl", "inputs": {"n": "lSUhEvxcgfI"}}, {"idx": 1, "outputs": "7732928338292377", "inputs": {"n": "77329283"}}, {"idx": 2, "outputs": "010111111111111010", "inputs": {"n": "010111111"}}, {"idx": 3, "outputs": "StazbbzatS", "inputs": {"n": "Stazb"}}, {"idx": 4, "outputs": "07022070", "inputs": {"n": "0702"}}, {"idx": 5, "outputs": "0111111111111110", "inputs": {"n": "01111111"}}, {"idx": 6, "outputs": "aa", "inputs": {"n": "a"}}, {"idx": 7, "outputs": "rznbbnzr", "inputs": {"n": "rznb"}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(String n, String expected){
          try{
              Driver driver = new Driver();
              if (driver.run(n,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution("lSUhEvxcgfI", "lSUhEvxcgfIIfgcxvEhUSl");
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution("77329283", "7732928338292377");
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution("010111111", "010111111111111010");
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution("Stazb", "StazbbzatS");
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution("0702", "07022070");
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution("01111111", "0111111111111110");
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution("a", "aa");
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution("rznb", "rznbbnzr");
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(String n, String expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(n),expected);
      }
      
      public boolean validateSolution(String actual, String expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7
question_info.commands: java __FILENAME__