Function to calculate the max sum of contigous subarray of B whose elements are not present in A
static int findMaxSubarraySum ( int A [ ] , int B [ ] ) { HashMap < Integer , Integer > m = new HashMap < > ( ) ;