Domanda di colloquio di IMC Trading

Basic algorithm questions, can be done in any language.