class Reverse { // Complete the function // str: input string public static String reverseWord(String str) { // Reverse the string str int n = str.length(); char ch[] = str.toCharArray(); for(int i = 0; i