Synechron Interview Question

Reverse a string Sort by value the hashmap