Amazon Interview Question

Longest Increasing subsequence of Squares