Added solution for THE MAX LINES