This case will occour when all elements of A are present in B , thus no subarray can be formed
if ( maxSubarraySum == - 2147483648 ) { document . write ( " " + " " + " " ) ; } else { document . write ( " " + maxSubarraySum ) ; } }