MicroStrategy interview question

max points on a line from leetcode