← Questions

Online shopping system: order states, inventory and payment, then scale it

0
MicrosoftOO designLast asked Nov 2026

An object-oriented design interview question asked in Microsoft's technical phone screen, last asked Nov 2026. It tests object-oriented design, state machine and inventory.

Write the code for a small online shop: customers place orders for products in stock, pay for them, and each order moves through a series of states. Then approach the shop again, this time as a system design question, and explain how you…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

object-oriented design · state machine · inventory · payments

Your canvas and the AI tutor open when you unlock this question.