Domanda di colloquio di Aptean

In 2nd round written technical test they have asked a program on String i.e. replace the repeating Character and another question was pattern based.