Sort trade executions into a canonical order | Jane Street Interview Question