Write a definition of function rotate(s), which produces the string that you get by moving the last character of string s to the beginning of s. Assume that s is not an empty string. For example,
  rotate("abcd") = "dabc"
  rotate("rabbit") = "trabbi"
  rotate("aabbcc") = "caabbc"
  rotate("a") = "a"

 

  [Language: Cinnameg  Kind: function definition]