IMC Trading interview question

Both questions were coding questions.