Optiver Interview Question

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