Function to find maximum length of subarray such that sum of maximum element in subarray in brr [ ] and sum of subarray in arr [ ] * K is at most C
int maxLength ( int a [ ] , int b [ ] , int n , int c ) {