IMC Trading interview question

Two questions on hacker rank.

IMC Trading Interview Question: Two questions on hacker rank. | Glassdoor