Pregunta de entrevista de Sierra Wireless

Simple python and C++ programming questions. Reverse a string, read from file. Very straightforward.