Pergunta de entrevista da empresa InterSystems

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