Returns the number of ordered pairs ( i , j ) for which point ( arr [ i ] , arr [ j ] ) satisfies the equation of the line y = mx + c
int findOrderedPoints ( int arr [ ] , int n , int m , int c ) { int counter = 0 ;