IBM Interview Question

Friend function virtual function reverse string