The function removes every second character from the input string and adds "SS" at the end.

