title: Find Whether Given Integer Power 3 Not
signature: find_whether_given_integer_power_3_not <- function(n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          1L, 
          TRUE
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          3L, 
          TRUE
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          27L, 
          TRUE
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          9L, 
          TRUE
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          -9L, 
          TRUE
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          11L, 
          FALSE
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          57L, 
          FALSE
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          21L, 
          FALSE
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          60L, 
          FALSE
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          44L, 
          FALSE
      )))
  
  }
  
  main()
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;
  }