Capgemini Interview Question

make a string steady by replacing substring of input string with any string of the same length. it can be a empty string also.