Pregunta de entrevista de National Instruments

reverse a string in efficiency way