title: Hypercube Graph
signature: function hypercubeGraph(n: number): number {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: number, expected: number): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(n: number, expected:number): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver(28, 268435456);
    console.log(`TEST-0...${result}`);
  
    result = driver(45, 35184372088832);
    console.log(`TEST-1...${result}`);
  
    result = driver(41, 2199023255552);
    console.log(`TEST-2...${result}`);
  
    result = driver(36, 68719476736);
    console.log(`TEST-3...${result}`);
  
  };
  
  main();
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 );
  }