decide if one string is permutation of the other
reverse a string