Best Buy: Work out how much of each product each warehouse is holding, and where stock needs rebalancing.
Supply chain is planning the next quarter's replenishment and wants to know where each product actually sits across the four warehouses before placing any orders. The stock system does not hold a running balance, so they have shared the movement log for the first half of the year along with a table of the warehouses.
stock_movements.csv is the movement log for January to June:
movement_idwarehouse_idsku - the product codemovement_datemovement_type - what kind of movement it wasquantitywarehouses.csv has one row per warehouse:
warehouse_idwarehouse_nameopening_stock_date - the date the warehouse began holding stockYou can solve this in Python, SQL, or a mix of both — StrataScratch notebooks support both languages in the same notebook.
Assume this data comes directly from the stock system and hasn't been cleaned, so review it carefully before relying on the numbers. When something looks off, work out what it is and decide how to handle it; when a definition or a final decision is genuinely ambiguous, choose a reasonable option and explain why. There's often more than one valid way to compute a result, so explain the approach you take and the reasoning behind your choices.
What's assessed: your results, and how clearly you explain what you see in the data and justify the choices you make.
See the full interview round by round, with questions for each stage.