Software AG interview question

Matrix Program, String Reverse, Duplicate Characters in different ways