Pregunta de entrevista de Tech Mahindra

String related question like reverse a string count the length