Person3 working
Person3 java code

Coded the method to reverse the string