text: 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
code: static int maxWeight ( int [ ] arr , int n , int w1_r , int w2_r , int i ) {