Utility function for findMaxSubarraySum ( ) with the following parameters A = > Array A , B = > Array B , n = > Number of elements in Array A , m = > Number of elements in Array B
static int findMaxSubarraySumUtil ( int [ ] A , int [ ] B , int n , int m ) {