Capgemini interview question

About String coding questions !!