Capgemini Interview Question

Guess the output Programs related to strings