Pregunta de entrevista de ConsultAdd

Dsa question on Longest increasing subsequence