Splunk Interview Question

Reverse a string & find max of array in java