Volant Trading Interview Question

past project, algorithm question