Capgemini interview question

Asked String manipulation based Questions