title: Perfect Reversible String
signature: def perfectReversibleString(str: String) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Boolean , expected: Boolean): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(str: String, expected: Boolean): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(str),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        "ab", 
        false    
      )}")   
  
  
      println(s"TEST-1...${driver(
        "303", 
        true    
      )}")   
  
  
      println(s"TEST-2...${driver(
        "11110000", 
        false    
      )}")   
  
  
      println(s"TEST-3...${driver(
        "aba", 
        true    
      )}")   
  
  
      println(s"TEST-4...${driver(
        "404", 
        true    
      )}")   
  
  
      println(s"TEST-5...${driver(
        "10101", 
        true    
      )}")   
  
  
      println(s"TEST-6...${driver(
        "abab", 
        false    
      )}")   
  
  
      println(s"TEST-7...${driver(
        "6366", 
        false    
      )}")   
  
  
      println(s"TEST-8...${driver(
        "001", 
        false    
      )}")   
  
  
      println(s"TEST-9...${driver(
        "", 
        true    
      )}")   
  
  }
  
source_py: def perfect_reversible_string(str):
      i = 0
      j = (len(str) - 1)
      while (i < j):
          if (str[i] != str[j]):
              return False
          i += 1
          j -= 1
      return True
source_cpp: bool perfect_reversible_string(string str) {
    int i = 0, j = str . length ( ) - 1;
    while ( i < j ) {
      if ( str [ i ] != str [ j ] ) return false;
      i ++;
      j --;
    }
    return true;
  }