Pregunta de entrevista de Tata Consultancy Services

Write a program to take string input from user and print,