Jane Street Interview Question

Coding was super easy so not really sure why I failed lol it was a simple sort algorithm leetcode easy style