Arista Networks interview question

String Reverse