Reverse each word in a string.
Find all the longest increasing subsequence in a given sequence of integers.