Company: LeadSquared_8aug
Difficulty: medium
Restaurant Management System Problem Description A restaurant keeps the recipe of each dish as a list of ingredients with the quantity of each one that the dish holds. Implement two classes. Class Ingredient Data members: name (a string) and quantity (an integer). A public constructor Ingredient(name, quantity) that initialises both data members. Class Dish Data member: ingredients , a list of Ingredient objects. A public constructor Dish(ingredients) that initialises the data member. Method chef(ingredientList) returns an integer. It receives a list of requested Ingredient objects and checks each one against the ingredient with the same name in the dish: If every requested ingredient is present in the dish and its requested quantity is less than or equal to the dish's quantity of that ingredient, return 1 . If a requested ingredient is present in the dish but its requested quantity is greater than the dish's quantity, return -1 . If a requested ingredient is not present in the dish at