Problem

Return first two chars or whole s if shorter.

Examples

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