Pregunta de entrevista de Comcast

reversing an array containing characters