0 day streak
Anonymous · shared experience20 Jul 2025 · 11 views

Flipkart: Executable e-commerce billing engine with discounts and loyalty levels

Interview question #Flipkart SDE 2 Machine coding

Problem. Build a small but fully runnable billing module for an online store. It has to compute the bill for an order, apply discounts, and run a loyalty scheme where customers earn points and move up levels.

Format. About 90 minutes on the first day to read the problem and write the code. A roughly 30 minute evaluation followed on the next day.

What was assessed. The reviewer looked at which classes the candidate created and what each one owned, how cleanly concerns were separated (pricing, discount rules, points), and the reasoning behind the overall design.

Follow-ups.

  • What would you change in the design if you had more time?
  • How would you introduce a database in place of in-memory state?

The post gave no sample inputs or formal limits. The emphasis was on design quality, not just a correct total.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.