finished first leet code, reverse words in string