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
function findMaxSubarraySumUtil ( $ A , $ B , $ n , $ m ) {