Pergunta de entrevista da empresa Amazon

find longest increasing integer seq from a string type integer seq.