IMC Trading interview question

2 questions. first one - dsa