Trade Ledger Interview Question

Question about tech test implementation