Solve Problem 2: Longest Lines