Pregunta de entrevista de InterSystems

Reverse a string. Find the second minimum element in an array.