← all problems

tripleString 🌶️

Write a method that takes one String parameter, s, and returns a new String containing s repeated three times, with nothing in between. For example, tripleString("ab") should return "ababab".