Wipro interview question

String manipulation programs, puzzle questions