printing a message in reverse