Problem

Return s.substring(0, 2) for strings of length at least 2.

Examples

  • strSubstringFirst("Hello") -> "He"
Compile and test (Ctrl+Enter)