function to find the longest subarray with sum divisible by k . The function stores starting and ending indexes of the subarray at addresses pointed by start and finish pointers respectively .
void longSubarrWthSumDivByK ( int arr [ ] , int n , int k , int & start , int & finish ) {