Write a Scala program to read a given string and if the first or last characters are same return the string without those characters otherwise return the string unchanged
Write a Scala program to read a given string and if the first or last characters are same return the string without those characters otherwise return the string unchanged.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer