Company: LeadSquared_8aug
Difficulty: medium
Restaurant Management System Problem Description You are required to implement two classes, Ingredient and Dish , as per the specifications below. Class Definitions Class Ingredient Data Members: name (type: string): The name of the ingredient. quantity (type: int): The quantity of the ingredient. Constructor: __init__(self, name: str, quantity: int) Constructor that initializes the name and quantity data members. This constructor should be publicly accessible. Class Dish Data Members: ingredients (type: List[Ingredient]): A list of Ingredient objects representing the ingredients used in the dish. Constructor: __init__(self, ingredients: List[Ingredient]) Constructor that initializes the ingredients data member. This constructor should be publicly accessible. Methods of Class Dish: Method chef chef(self, ingredientList: List[Ingredient]) -> int This method takes a list of Ingredient objects, ingredientList , and returns an integer based on the following conditions: If all elements in t