O(N^3) solution to the longest increasing sequence.
Removed empty space.
Telegraph problem, this one was so easy I am not really sure I got it right.