X990: Find Last Characters

Write a method that will return a string composed of the last n characters of wholeString.

For example:

  • Running getSuffix("reading", 3) should return "ing"
  • Running getSuffix("Magic", 1) should return "c"

Your Answer:

Feedback

Your feedback will appear here when you check your answer.