Given a String
return the String
made of its first two chars.
So the String "Hello" yields "He".
If the string is shorter than length 2, return whatever there is, so "X" yields "X", and the empty string ""
yields the empty string "".
Stuck? You may find these lessons helpful: