BMC Software Interview Question

Reverse string in java