leetcode: max point in a line