Pregunta de entrevista de Cognizant

Write program for reverse of string?