Question d’entretien chez McKinsey & Company

DSA Medium Question to get Optimal Amount from an array