you give 0indexed integer array nums1 nums2 length nYou choose integer leave right 0 leave right n swap subarray nums1leftright subarray nums2leftrightfor example nums1 12345 nums2 1112131415 choose leave 1 right 2 nums1 1121345 nums2 11231415you choose apply mention operation anythingthe score array maximum sumnums1 sumnums2 sumarr sum element array arrreturn maximum possible scorea subarray contiguous sequence element array arrleftright denote subarray contain element num index leave right inclusive Example 1input nums1 606060 nums2 109010output 210explanation choosing leave 1 right 1 nums1 609060 nums2 106010the score maxsumnums1 sumnums2 max210 80 210example 2input nums1 2040207030 nums2 5020504020output 220explanation choosing leave 3 right 4 nums1 2040204020 nums2 5020507030the score maxsumnums1 sumnums2 max140 220 220example 3input nums1 71113 nums2 111output 31explanation we choose swap subarraythe score maxsumnums1 sumnums2 max31 3 31 Constraintsn nums1length nums2length1 n 1051 nums1i nums2i 104