LLD - Design — Online Shopping Cart
Given the following code snippet, what will be the total quantity of products in the cart after adding 3 units of Product A and 2 units of Product B?
cart.addProduct(productA, 3);
cart.addProduct(productB, 2);
cart.addProduct(productA, 1);
