Optiver Interview Question

A coding question. It was data sorting