Who asked: the operations lead at Kestrel Brokerage, a fictional broker.
Why: end-of-day checks need a small, dependable ledger library the desk tools can link against: record trades as they arrive, report the gross notional, show the net position per symbol and remove trades that were cancelled.
The data: a struct Trade with a symbol (up to 7 characters), a quantity, a price in cents and a side ('B' or 'S'), and a struct Ledger that owns a heap array of trades with a count and a capacity.
Done looks like: six functions in one file: trade_value, ledger_add (growing by doubling from 4), ledger_notional, ledger_position, ledger_cancel (keeping the order of the remaining trades) and ledger_free. Every test passes, and nothing reads past the array or leaks it.
In this project you build one C file that keeps a trading desk's ledger. Each step adds a function to the same file, and your own code carries forward to the next step. The tests call every function you have written so far.