reverse the word given on the cmd prompt.