Optiver interview question

4 Hard hackerrank problems in 2 hours