Problem

Return n * 3 + 1.

Examples

  • timesThreePlusOne(2) -> 7
  • timesThreePlusOne(0) -> 1
Compile and test (Ctrl+Enter)