title: Find Whether Given Integer Power 3 Not
signature: def findWhetherGivenIntegerPower3Not(n: Int) = {
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(n: Int, expected: Boolean): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        1, 
        true    
      )}")   
  
  
      println(s"TEST-1...${driver(
        3, 
        true    
      )}")   
  
  
      println(s"TEST-2...${driver(
        27, 
        true    
      )}")   
  
  
      println(s"TEST-3...${driver(
        9, 
        true    
      )}")   
  
  
      println(s"TEST-4...${driver(
        -9, 
        true    
      )}")   
  
  
      println(s"TEST-5...${driver(
        11, 
        false    
      )}")   
  
  
      println(s"TEST-6...${driver(
        57, 
        false    
      )}")   
  
  
      println(s"TEST-7...${driver(
        21, 
        false    
      )}")   
  
  
      println(s"TEST-8...${driver(
        60, 
        false    
      )}")   
  
  
      println(s"TEST-9...${driver(
        44, 
        false    
      )}")   
  
  }
  
source_py: def find_whether_given_integer_power_3_not(n):
      return ((1162261467 % n) == 0)
source_cpp: bool find_whether_given_integer_power_3_not(int n) {
    return 1162261467 % n == 0;
  }