Main Navigation
Share your interview in your own words — our AI handles the rest. Hardly takes 2 minutes.
Practice mock interviews or book a 1:1 call for career guidance, resume reviews, and more.
Connect with us on social media
Interview experiences & questions tagged In Memory System
Design and implement a Buy Now Pay Later (BNPL) system for Flipkart. The solution should be purely in-memory (no database required) and runnable/demonstrable via a driver/main program. Required capabilities: - **seed_inventory and view_inventory**: Load products (name, count, price) and display current inventory stock. - **register_user**: Register a user with an assigned initial BNPL credit limit. - **buy(user, items, payment_method, date)**: Support payment methods `PREPAID` or `BNPL`. Prevent BNPL transactions once credit limits are exhausted. - **clear_dues(user, orderIds, date)**: Support partial or full clearance of pending balances mapped to specific orders. - **view_dues(user, date)**: Display pending dues prior to the provided date, sorted by purchase date, marked as `PENDING` or `DELAYED` (if older than 30 days). - **order_status(user)**: Output complete order history along with remaining BNPL credit limit. - **Bonus**: Implement logic to blacklist users defaulting on 3 or more orders, alongside dynamic `add_inventory` and `remove_inventory` functionality.
Coming Soon