stutter("abcd") = "aabbccdd" stutter("giraffe") = "ggiirraaffffee" stutter("y") = "yy" stutter("") = ""
Hint.
Have a case for stutter("").
When s is not an empty string, just concatenate the first character of s, then the same thing again, then stutter(tail(s)). Remember that you need to convert a character to a string to be able to use operator ++ with it.