Pergunta de entrevista da empresa Snap

Calculate the length of the array's Longest increasing subsequence