Pergunta de entrevista da empresa Tech Mahindra

String related question like reverse a string count the length