Method:A block of code that performs a specific task and can be called (invoked) from other parts of the program.
Parameter:A value passed into a method when it is called. In this case, the parameter is "str" which represents the input String.
Loop: A control structure that repeats a block of code until a certain condition is met. In this case, the for loop is used to iterate over each character in reverse order.