Compute longest increasing subsequence length | Pinduoduo Interview Question