← all problems

lastLetterTwice 🌶️

Write a method that takes one String parameter, s, and returns a String containing just the LAST character of s, repeated twice. For example, lastLetterTwice("hello") should return "oo". You may assume s has at least one character.