Expedia Group Interview Question

Reverse a string, second max of the array