Problem

Return 3^n recursively.

Examples

  • tripleRec(3) -> 27
  • tripleRec(0) -> 1
Compile and test (Ctrl+Enter)