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
public static int maxLength ( int [ ] a , int [ ] b , int n , int c ) {