Get first n characters of string
How to solve it
To get the first n characters of a string, I would use the slice method again.
As we have seen in previous tasks, we can use the
slicemethod to extract a part of a string without modifying the original string.
// output: 'wx'