Company: wipro_2nov
Difficulty: medium
Picnic Basket Sandwich Challenge Problem Description Aanya is preparing for the annual school picnic. She wants to carry as many sandwiches as possible for her friends. She has a picnic basket that can hold a maximum weight of 'w'. At the cafeteria, there are 'n' sandwiches available, each with a different weight given in the weight array. Aanya's goal is to maximize the number of sandwiches she can carry in her basket, regardless of their individual fillings or flavors, so that she can share with as many friends as possible. Return the maximum number of sandwiches Aanya can place in her basket. Input Format: The first line contains one integer 'n', the number of sandwiches. Each of the next 'n' lines contains an integer, weight of the i th sandwich. The next line contains an integer 'w', the weight capacity of the basket. Output Format: Return the maximum number of sandwiches that Aanya can put in her basket. Examples Example 1: Input: 5 2 9 8 2 7 20 Output: 4 Explanation: Aanya can c