Pregunta de entrevista de Tech Mahindra

basic questions on sorting and strings, substring some objectives on aptitude