Pergunta de entrevista da empresa Meta

Write a program to record the largest ascending sequence, given an array of integers.