Capgemini interview question

Guess the output Programs related to strings