Domanda di colloquio di Amazon

Some algorithm problems. Sorting, longest increasing numbers