Given an array with integers. Find two non-overlapping subarrays A and B, which |SUM(A) - SUM(B)| is the largest. Return the largest difference. 1,-2,3,-1 1,3 A -1 B 7 public int maxDiffSubArrays(int[] nums) { // write your code here } Solution: publ…