Solution for simple sorting.
Solution for Longest Line.