Problem

Return the first character of a non-empty String.

Examples

  • firstChar("Maker") -> "M"
  • firstChar("a") -> "a"
Compile and test (Ctrl+Enter)