1475. Final Prices With a Special Discount in a Shop - Explanation

Problem Link