Optiver interview question

Zapn standard coding challenge in hacker rank