Optiver interview question

First Hackerrank coding challenges then Zap-N test (several games)