Pregunta de entrevista de Microsoft

reverse a string of words. and how do u test your program?