val [ ] and wt [ ] arrays val [ ] array to store cost of ' i ' kg packet of orange wt [ ] array weight of packet of orange
List < int > val = new List < int > ( ) ; List < int > wt = new List < int > ( ) ;