Contents:
Return the first trend in the sequence.
s: the sequence to find the prefix trend of.
Longest prefix that is a trend.