Pregunta de entrevista de Zynga

Increasing subsequence problem which is also there in leetcode