Just start the application in any IDE, do not need any DB, using Lists for storing coupons. mvn clean install would install dependencies and then we can start
- Saw the OR logic after the whole implementation.
- Currently iterating through each buy product inside the cuopon and getting the discount value from it's get products details. It's been some days since I started this project, so I thought I would submit without any delay.
- Iterating through each proeduct and calculating the total cost of each product (quantity * price).
- Applying the discount on the whole product cost as per the coupon
- Iterate through available coupons and apply the largest discount price accordingly.