Pregunta de entrevista de Amazon

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