Pregunta de entrevista de Mohit Sharma

Reverse the substring, sorting the elements in an array for coding test