Sponsored
Use these hints if you're stuck. Try solving on your own first.
Keep track of the count of the customers.
Check if the count of the customers is divisible by n then apply the discount formula.
Solve with full IDE support and test cases