the pair sum pair ab equal b the maximum pair sum large pair sum list pairsfor example pair 15 23 44 maximum pair sum max15 23 44 max6 5 8 8given array num length n pair element num n 2 pair thateach element num exactly pair andthe maximum pair sum minimizedReturn minimize maximum pair sum optimally pair element Example 1input num 3523output 7explanation the element pair pair 33 52the maximum pair sum max33 52 max6 7 7Example 2input num 354246output 8explanation the element pair pair 35 44 62the maximum pair sum max35 44 62 max8 8 8 8 Constraintsn numslength2 n 105n even1 numsi 105