Optiver interview question

A coding question. It was data sorting