title: Hypercube Graph
signature: fun hypercubeGraph(n: Int): Long {
source_py: def hypercube_graph(n):
      if (n == 1):
          return 2
      return (2 * hypercube_graph((n - 1)))
source_cpp: int hypercube_graph(int n) {
    if ( n == 1 ) return 2;
    return 2 * hypercube_graph ( n - 1 );
  }
question_info.test_list: [{"idx": 0, "outputs": 268435456, "inputs": {"n": 28}}, {"idx": 1, "outputs": 35184372088832, "inputs": {"n": 45}}, {"idx": 2, "outputs": 2199023255552, "inputs": {"n": 41}}, {"idx": 3, "outputs": 68719476736, "inputs": {"n": 36}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Long, expected:Long):Boolean{
    return actual.equals(expected)
  }
  fun driver(n: Int, expected:Long):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(28, 268435456)
      println("TEST-0...${result}")
      
      result = driver(45, 35184372088832)
      println("TEST-1...${result}")
      
      result = driver(41, 2199023255552)
      println("TEST-2...${result}")
      
      result = driver(36, 68719476736)
      println("TEST-3...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: hypercubeGraph
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn