w1_r represents remaining capacity of 1 st knapsack w2_r represents remaining capacity of 2 nd knapsack i represents index of the array arr we are working on
def maxWeight ( arr , n , w1_r , w2_r , i ) : NEW_LINE