Pregunta de entrevista de SUATI

They ask for an algorithm to permut a string.