SD Squared interview question

Longest increasing substring