IMC Trading interview question

Just some basic algorithms, I use Python to solve all of them