Sierra Wireless interview question

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