Visa Inc. Interview Question

reverse a string in java