Here is an interface StringReverser:
interface StringReverser {
String reverse(String str);
}
You should create an anonymous class that implements the interface and assign the instance to the variable reverser. The anonymous class must override the method reverse of the interface. It should return the reversed input string.