Problem

Return s.length() using recursion.

Examples

  • lenRec("abc") -> 3
  • lenRec("") -> 0
Compile and test (Ctrl+Enter)