Pergunta de entrevista da empresa Epic

Get all well-ordered substrings from a series of numbers. Well-ordered substring is a string composed by ascending numbers.