Amazon interview question

Some algorithm problems. Sorting, longest increasing numbers