Given two arrays X and Y of points where (Xi, Yi)represents a point on the X-Y plane. Your task is to complete the function maxPoints which returns an integer denoting the maximum number of points that lie on the same straight line.
You don't need to read input or print anything. Your task is to complete the function maxPoints() which takes two lists of coordinates as input and returns the maximum number of points that lies on the same line.
Expected Time Complexity: O(N2) Expected Auxiliary Space: O(N)