add BigO return for ReverseWordsInString