IMC Trading Interview Question

OOD, sorting