Apolis interview question

String reversal, OOP basic knowledge