Citadel Securities Interview Question

implement a simple stock exchange